bootstrap.php 430 B

1234567891011121314
  1. <?php
  2. use Doctrine\Common\Annotations\AnnotationRegistry;
  3. call_user_func(function () {
  4. if (!is_file($autoloadFile = __DIR__ . '/../vendor/autoload.php')) {
  5. throw new \RuntimeException('Did not find vendor/autoload.php. Did you run "composer install --dev"?');
  6. }
  7. $loader = require $autoloadFile;
  8. $loader->add('JMS\Serializer\Tests', __DIR__);
  9. AnnotationRegistry::registerLoader('class_exists');
  10. });