Improved compatibility with composer global
This commit is contained in:
parent
9037c31599
commit
7ccdb99836
@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?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 = new MakePhar\Application();
|
||||||
$app->run();
|
$app->run();
|
||||||
|
Loading…
Reference in New Issue
Block a user