Improved compatibility with composer global

This commit is contained in:
Chris 2017-01-10 17:14:59 +01:00
parent 9037c31599
commit 7ccdb99836

View File

@ -1,6 +1,12 @@
<?php
require_once __DIR__."/../vendor/autoload.php";
$loaders = [
__DIR__."/../vendor/autoload.php",
__DIR__."/../../../autoload.php",
];
foreach ($loaders as $loader) {
if (file_exists($loader)) { require_once $loader; break; }
}
$app = new MakePhar\Application();
$app->run();