var/cache/dev/ContainerNegrjuc/getDoctrine_Orm_DefaultEntityManagerService.php line 11

Open in your IDE?
  1. <?php
  2. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  3. // This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
  4. // Returns the public 'doctrine.orm.default_entity_manager' shared service.
  5. if ($lazyLoad) {
  6.     return $this->services['doctrine.orm.default_entity_manager'] = $this->createProxy('EntityManager_9a5be93', function () {
  7.         return \EntityManager_9a5be93::staticProxyConstructor(function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) {
  8.             $wrappedInstance $this->load('getDoctrine_Orm_DefaultEntityManagerService.php'false);
  9.             $proxy->setProxyInitializer(null);
  10.             return true;
  11.         });
  12.     });
  13. }
  14. $a = new \Doctrine\ORM\Configuration();
  15. $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
  16. $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver([($this->targetDirs[3].'/vendor/friendsofsymfony/oauth-server-bundle/Resources/config/doctrine') => 'FOS\\OAuthServerBundle\\Entity']);
  17. $c->setGlobalBasename('mapping');
  18. $d = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(${($_ = isset($this->services['annotation_reader']) ? $this->services['annotation_reader'] : $this->getAnnotationReaderService()) && false ?: '_'}, [=> ($this->targetDirs[3].'/src/AppBundle/Entity'), => ($this->targetDirs[3].'/src/ApiBundle/Entity')]);
  19. $b->addDriver($c'FOS\\OAuthServerBundle\\Entity');
  20. $b->addDriver($d'AppBundle\\Entity');
  21. $b->addDriver($d'ApiBundle\\Entity');
  22. $b->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator([($this->targetDirs[3].'/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping') => 'FOS\\UserBundle\\Model'], '.orm.xml')), 'FOS\\UserBundle\\Model');
  23. $a->setEntityNamespaces(['FOSOAuthServerBundle' => 'FOS\\OAuthServerBundle\\Entity''AppBundle' => 'AppBundle\\Entity''ApiBundle' => 'ApiBundle\\Entity']);
  24. $a->setMetadataCacheImpl(${($_ = isset($this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.metadata']) ? $this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.metadata'] : $this->load('getDoctrine_Orm_Cache_Provider_Cache_Doctrine_Orm_Default_MetadataService.php')) && false ?: '_'});
  25. $a->setQueryCacheImpl(${($_ = isset($this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.query']) ? $this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.query'] : $this->load('getDoctrine_Orm_Cache_Provider_Cache_Doctrine_Orm_Default_QueryService.php')) && false ?: '_'});
  26. $a->setResultCacheImpl(${($_ = isset($this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.result']) ? $this->services['doctrine.orm.cache.provider.cache.doctrine.orm.default.result'] : $this->load('getDoctrine_Orm_Cache_Provider_Cache_Doctrine_Orm_Default_ResultService.php')) && false ?: '_'});
  27. $a->setMetadataDriverImpl($b);
  28. $a->setProxyDir(($this->targetDirs[0].'/doctrine/orm/Proxies'));
  29. $a->setProxyNamespace('Proxies');
  30. $a->setAutoGenerateProxyClasses(true);
  31. $a->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
  32. $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
  33. $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
  34. $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  35. $a->setEntityListenerResolver(${($_ = isset($this->services['doctrine.orm.default_entity_listener_resolver']) ? $this->services['doctrine.orm.default_entity_listener_resolver'] : $this->load('getDoctrine_Orm_DefaultEntityListenerResolverService.php')) && false ?: '_'});
  36. $a->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator([])));
  37. $a->addCustomHydrationMode('ColumnHydrator''AppBundle\\Extensions\\DoctrineExtensions\\ColumnHydrator');
  38. $a->addCustomStringFunction('MATCH''DoctrineExtensions\\Query\\Mysql\\MatchAgainst');
  39. $a->addCustomNumericFunction('ACOS''DoctrineExtensions\\Query\\Mysql\\Acos');
  40. $a->addCustomNumericFunction('SIN''DoctrineExtensions\\Query\\Mysql\\Sin');
  41. $a->addCustomNumericFunction('RADIANS''DoctrineExtensions\\Query\\Mysql\\Radians');
  42. $a->addCustomNumericFunction('COS''DoctrineExtensions\\Query\\Mysql\\Cos');
  43. $instance = \Doctrine\ORM\EntityManager::create(${($_ = isset($this->services['doctrine.dbal.default_connection']) ? $this->services['doctrine.dbal.default_connection'] : $this->load('getDoctrine_Dbal_DefaultConnectionService.php')) && false ?: '_'}, $a);
  44. ${($_ = isset($this->services['doctrine.orm.default_manager_configurator']) ? $this->services['doctrine.orm.default_manager_configurator'] : ($this->services['doctrine.orm.default_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))) && false ?: '_'}->configure($instance);
  45. return $instance;