autoload.php 410 B

123456789101112131415161718192021
  1. <?php
  2. use Doctrine\Common\Annotations\AnnotationRegistry;
  3. if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
  4. $message = <<< EOF
  5. <p>You must set up the project dependencies by running composer install</p>
  6. EOF;
  7. if (PHP_SAPI === 'cli') {
  8. $message = strip_tags($message);
  9. }
  10. die($message);
  11. }
  12. AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  13. return $loader;