autoload.php 511 B

12345678910111213141516171819202122232425
  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 the following commands:</p>
  6. <pre>
  7. curl -s http://getcomposer.org/installer | php
  8. php composer.phar install
  9. </pre>
  10. EOF;
  11. if (PHP_SAPI === 'cli') {
  12. $message = strip_tags($message);
  13. }
  14. die($message);
  15. }
  16. AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  17. return $loader;