Update autoloader.php
This commit is contained in:
parent
2ae9de5d54
commit
609cafc167
1 changed files with 6 additions and 1 deletions
|
@ -7,7 +7,12 @@ use Composer\Autoload\ClassLoader;
|
|||
/**
|
||||
* @var ClassLoader $loader
|
||||
*/
|
||||
$loader = require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$autoloadFile = file_exist(__DIR__ . '/../vendor/autoload.php')
|
||||
? __DIR__ . '/../vendor/autoload.php'
|
||||
: __DIR__ . '/../../../autoload.php'
|
||||
|
||||
$loader = require $autoloadFile;
|
||||
|
||||
AnnotationRegistry::registerLoader('class_exists');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue