1
0
Fork 0
mirror of synced 2025-04-10 04:21:01 +00:00

Update autoloader.php

This commit is contained in:
Alex Lushpai 2019-05-14 12:03:32 +03:00 committed by GitHub
parent 2ae9de5d54
commit 609cafc167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');