2019-06-10 16:24:22 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// autoload.php
|
|
|
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
|
|
|
use Composer\Autoload\ClassLoader;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var ClassLoader $loader
|
|
|
|
*/
|
|
|
|
|
|
|
|
$autoloadFile = file_exists(__DIR__ . '/../vendor/autoload.php')
|
|
|
|
? __DIR__ . '/../vendor/autoload.php'
|
|
|
|
: __DIR__ . '/../../../autoload.php';
|
2019-07-16 15:04:54 +03:00
|
|
|
|
2019-06-10 16:24:22 +03:00
|
|
|
$loader = require $autoloadFile;
|
|
|
|
|
|
|
|
AnnotationRegistry::registerLoader('class_exists');
|
|
|
|
|
|
|
|
return $loader;
|