Search for the right autoloader in daenerys
This commit is contained in:
+12
-1
@@ -1,5 +1,16 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
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');
|
||||
|
||||
LotGD\Core\Console\Main::main();
|
||||
|
||||
Reference in New Issue
Block a user