1 | <?php |
||
2 | |||
3 | if ('cli' !== PHP_SAPI && file_exists(dirname(__DIR__).'/var/bootstrap.php.cache')) { |
||
4 | require_once dirname(__DIR__).'/var/bootstrap.php.cache'; |
||
5 | } |
||
6 | |||
7 | use Composer\Autoload\ClassLoader; |
||
8 | use Doctrine\Common\Annotations\AnnotationRegistry; |
||
9 | |||
10 | /** @var ClassLoader $loader */ |
||
11 | $loader = require dirname(__DIR__).'/vendor/autoload.php'; |
||
12 | |||
13 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
||
0 ignored issues
–
show
|
|||
14 | |||
15 | return $loader; |
||
16 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.