hotfix: Added aliases, implemented new runners

This commit is contained in:
2016-12-11 22:36:27 +01:00
parent 8e8cb05674
commit 302e5a50ce
23 changed files with 597 additions and 225 deletions

View File

@ -7,7 +7,26 @@ require_once __DIR__."/systemtest.php";
if (file_exists(__DIR__."/banner.php"))
require_once __DIR__."/banner.php";
use NoccyLabs\Hotfix\Hotfix\AliasManager;
use NoccyLabs\Hotfix\Service\ServiceManager;
use NoccyLabs\Hotfix\Service;
use NoccyLabs\Hotfix\HotfixApplication;
// Register services
ServiceManager::registerService(new Service\IxService());
// Register aliases
$paths = [
getenv("HOME")."/.hotfix.conf",
"/etc/hotfix.conf"
];
foreach ($paths as $path) {
if (file_exists($path)) {
AliasManager::registerFromConfig($path);
break;
}
}
// Start the application
$app = new HotfixApplication();
$app->run();