autoload.php 569 B

123456789101112131415161718192021222324252627
  1. <?php
  2. use Doctrine\Common\Annotations\AnnotationRegistry;
  3. error_reporting(error_reporting() & ~E_USER_DEPRECATED);
  4. if (!$loader = @include __DIR__.'/../vendor/autoload.php') {
  5. $message = <<< EOF
  6. <p>You must set up the project dependencies by running the following commands:</p>
  7. <pre>
  8. curl -s http://getcomposer.org/installer | php
  9. php composer.phar install
  10. </pre>
  11. EOF;
  12. if (PHP_SAPI === 'cli') {
  13. $message = strip_tags($message);
  14. }
  15. die($message);
  16. }
  17. AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  18. return $loader;