autoload.php 473B

12345678910111213141516
  1. <?php
  2. use Doctrine\Common\Annotations\AnnotationRegistry;
  3. $loader = include __DIR__.'/../vendor/autoload.php';
  4. // intl
  5. if (!function_exists('intl_get_error_code')) {
  6. require_once __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';
  7. $loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
  8. }
  9. AnnotationRegistry::registerLoader(array($loader, 'loadClass'));
  10. return $loader;