- <?php
- use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
- // This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
- // Returns the public 'doctrine.orm.default_entity_manager' shared service.
- if ($lazyLoad) {
-     return $this->services['doctrine.orm.default_entity_manager'] = $this->createProxy('EntityManager_9a5be93', function () {
-         return \EntityManager_9a5be93::staticProxyConstructor(function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) {
-             $wrappedInstance = $this->load('getDoctrine_Orm_DefaultEntityManagerService.php', false);
-             $proxy->setProxyInitializer(null);
-             return true;
-         });
-     });
- }
- $a = new \Doctrine\ORM\Configuration();
- $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
- $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver([($this->targetDirs[3].'/vendor/friendsofsymfony/oauth-server-bundle/Resources/config/doctrine') => 'FOS\\OAuthServerBundle\\Entity']);
- $c->setGlobalBasename('mapping');
- $d = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(${($_ = isset($this->services['annotation_reader']) ? $this->services['annotation_reader'] : $this->getAnnotationReaderService()) && false ?: '_'}, [0 => ($this->targetDirs[3].'/src/AppBundle/Entity'), 1 => ($this->targetDirs[3].'/src/ApiBundle/Entity')]);
- $b->addDriver($c, 'FOS\\OAuthServerBundle\\Entity');
- $b->addDriver($d, 'AppBundle\\Entity');
- $b->addDriver($d, 'ApiBundle\\Entity');
- $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');
- $a->setEntityNamespaces(['FOSOAuthServerBundle' => 'FOS\\OAuthServerBundle\\Entity', 'AppBundle' => 'AppBundle\\Entity', 'ApiBundle' => 'ApiBundle\\Entity']);
- $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 ?: '_'});
- $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 ?: '_'});
- $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 ?: '_'});
- $a->setMetadataDriverImpl($b);
- $a->setProxyDir(($this->targetDirs[0].'/doctrine/orm/Proxies'));
- $a->setProxyNamespace('Proxies');
- $a->setAutoGenerateProxyClasses(true);
- $a->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
- $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
- $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
- $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
- $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 ?: '_'});
- $a->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator([])));
- $a->addCustomHydrationMode('ColumnHydrator', 'AppBundle\\Extensions\\DoctrineExtensions\\ColumnHydrator');
- $a->addCustomStringFunction('MATCH', 'DoctrineExtensions\\Query\\Mysql\\MatchAgainst');
- $a->addCustomNumericFunction('ACOS', 'DoctrineExtensions\\Query\\Mysql\\Acos');
- $a->addCustomNumericFunction('SIN', 'DoctrineExtensions\\Query\\Mysql\\Sin');
- $a->addCustomNumericFunction('RADIANS', 'DoctrineExtensions\\Query\\Mysql\\Radians');
- $a->addCustomNumericFunction('COS', 'DoctrineExtensions\\Query\\Mysql\\Cos');
- $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);
- ${($_ = 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);
- return $instance;
-