var/cache/dev/ContainerMn6eAtP/getDoctrine_Orm_DefaultEntityManagerService.php line 17

Open in your IDE?
  1. <?php
  2. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  3. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  4. // This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
  5. // Returns the public 'doctrine.orm.default_entity_manager' shared service.
  6. include_once $this->targetDirs[3].'/vendor/doctrine/persistence/lib/Doctrine/Persistence/ObjectManager.php';
  7. include_once $this->targetDirs[3].'/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php';
  8. include_once $this->targetDirs[3].'/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php';
  9. include_once $this->targetDirs[3].'/vendor/doctrine/doctrine-bundle/ManagerConfigurator.php';
  10. if ($lazyLoad) {
  11.     return $this->services['doctrine.orm.default_entity_manager'] = $this->createProxy('EntityManager_9a5be93', function () {
  12.         return \EntityManager_9a5be93::staticProxyConstructor(function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) {
  13.             $wrappedInstance $this->load('getDoctrine_Orm_DefaultEntityManagerService.php'false);
  14.             $proxy->setProxyInitializer(null);
  15.             return true;
  16.         });
  17.     });
  18. }
  19. $instance = \Doctrine\ORM\EntityManager::create(($this->services['doctrine.dbal.default_connection'] ?? $this->load('getDoctrine_Dbal_DefaultConnectionService.php')), ($this->privates['doctrine.orm.default_configuration'] ?? $this->load('getDoctrine_Orm_DefaultConfigurationService.php')));
  20. (new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))->configure($instance);
  21. return $instance;