autoload.php 444 B

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