Files
Vassyli ae63c209e9 Clean-ups
Left overs to clean and changes from discussion.

Fixed config path finding
2016-07-29 11:57:24 +02:00

20 lines
529 B
PHP
Executable File

#!/usr/bin/env php
<?php
use LotGD\Core\Console\Main as DaenerysConsole;
function includeIfExists($file)
{
if (file_exists($file)) {
return include $file;
}
}
// Dance to find the autoloader.
// TOOD: change this to open up the Composer config and use $c['config']['vendor-dir'] instead of "vendor"
includeIfExists(getcwd() . '/vendor/autoload.php') ||
includeIfExists(__DIR__ . '/../vendor/autoload.php') ||
includeIfExists(__DIR__ . '/../autoload.php');
$daenerys = new DaenerysConsole();
$daenerys->run();