eesyphp/eesyphp

20 lines
559 B
Text
Raw Normal View History

#!/usr/bin/php
<?php
use EesyPHP\App;
use EesyPHP\Cli;
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 if (file_exists(__DIR__."/vendor/autoload.php"))
require __DIR__."/vendor/autoload.php";
else
die("Fail to find composer vendor/autoload.php file\n");
App::init(null, null, __DIR__);
Cli :: handle_args(null, true);