var/cache/dev/ContainerUxtrx7f/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\Persistence\Mapping\Driver\MappingDriverChain();
  16. $c = 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/Mod/RestaurantBundle/Entity'), => ($this->targetDirs[3].'/src/Mod/SightseeingBundle/Entity'), => ($this->targetDirs[3].'/src/Mod/ContactFormBundle/Entity'), => ($this->targetDirs[3].'/src/Mod/TopicsBundle/Entity'), => ($this->targetDirs[3].'/src/Mod/TopBundle/Entity')]);
  17. $b->addDriver($c'AppBundle\\Entity');
  18. $b->addDriver($c'Mod\\RestaurantBundle\\Entity');
  19. $b->addDriver($c'Mod\\SightseeingBundle\\Entity');
  20. $b->addDriver($c'Mod\\ContactFormBundle\\Entity');
  21. $b->addDriver($c'Mod\\TopicsBundle\\Entity');
  22. $b->addDriver($c'Mod\\TopBundle\\Entity');
  23. $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');
  24. $a->setEntityNamespaces(['AppBundle' => 'AppBundle\\Entity''ModRestaurantBundle' => 'Mod\\RestaurantBundle\\Entity''ModSightseeingBundle' => 'Mod\\SightseeingBundle\\Entity''ModContactFormBundle' => 'Mod\\ContactFormBundle\\Entity''ModTopicsBundle' => 'Mod\\TopicsBundle\\Entity''ModTopBundle' => 'Mod\\TopBundle\\Entity']);
  25. $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 ?: '_'});
  26. $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 ?: '_'});
  27. $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 ?: '_'});
  28. $a->setMetadataDriverImpl($b);
  29. $a->setProxyDir(($this->targetDirs[0].'/doctrine/orm/Proxies'));
  30. $a->setProxyNamespace('Proxies');
  31. $a->setAutoGenerateProxyClasses(true);
  32. $a->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
  33. $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
  34. $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
  35. $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  36. $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 ?: '_'});
  37. $a->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator([])));
  38. $a->addCustomStringFunction('aes_decrypt''DoctrineExtensions\\Query\\Mysql\\AesDecrypt');
  39. $a->addCustomStringFunction('aes_encrypt''DoctrineExtensions\\Query\\Mysql\\AesEncrypt');
  40. $a->addCustomStringFunction('from_base64''AppBundle\\Doctrine\\Extensions\\Query\\Mysql\\FromBase64');
  41. $a->addCustomStringFunction('to_base64''AppBundle\\Doctrine\\Extensions\\Query\\Mysql\\ToBase64');
  42. $a->addCustomNumericFunction('rand''DoctrineExtensions\\Query\\Mysql\\Rand');
  43. $a->addCustomDatetimeFunction('date_format''DoctrineExtensions\\Query\\Mysql\\DateFormat');
  44. $a->addCustomDatetimeFunction('now''DoctrineExtensions\\Query\\Mysql\\Now');
  45. $a->addCustomDatetimeFunction('month''DoctrineExtensions\\Query\\Mysql\\Month');
  46. $a->addCustomDatetimeFunction('year''DoctrineExtensions\\Query\\Mysql\\Year');
  47. $a->addFilter('soft_delete''AppBundle\\Doctrine\\Filter\\SoftDeleteFilter');
  48. $a->addFilter('public''AppBundle\\Doctrine\\Filter\\PublicFilter');
  49. $a->addFilter('post_type''AppBundle\\Doctrine\\Filter\\PostTypeFilter');
  50. $a->addFilter('facility''AppBundle\\Doctrine\\Filter\\FacilityFilter');
  51. $a->addFilter('language''AppBundle\\Doctrine\\Filter\\LanguageFilter');
  52. $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);
  53. ${($_ = 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([=> 'post_type'], []))) && false ?: '_'}->configure($instance);
  54. return $instance;