autoload.php 578B

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