Compare commits
1 commit
cd442079f5
...
9782c9d985
Author | SHA1 | Date | |
---|---|---|---|
9782c9d985 |
1 changed files with 9 additions and 1 deletions
10
eesyphp
10
eesyphp
|
@ -4,6 +4,14 @@
|
||||||
use EesyPHP\App;
|
use EesyPHP\App;
|
||||||
use EesyPHP\Cli;
|
use EesyPHP\Cli;
|
||||||
|
|
||||||
require __DIR__."/vendor/autoload.php";
|
if (isset($_composer_autoload_path))
|
||||||
|
require $_composer_autoload_path;
|
||||||
|
else if (file_exists(__DIR__ . '/../../autoload.php'))
|
||||||
|
require __DIR__ . '/../../autoload.php';
|
||||||
|
else if (file_exists(__DIR__ . '/../vendor/autoload.php'))
|
||||||
|
require __DIR__ . '/../vendor/autoload.php';
|
||||||
|
else
|
||||||
|
die('Fail to find composer vendor/autoload.php file');
|
||||||
|
|
||||||
App::init(null, null, __DIR__);
|
App::init(null, null, __DIR__);
|
||||||
Cli :: handle_args();
|
Cli :: handle_args();
|
||||||
|
|
Loading…
Reference in a new issue