var/cache/dev/ContainerBU7G59P/getDoctrine_Orm_DefaultEntityManagerService.php line 18

Open in your IDE?
  1. <?php
  2. namespace ContainerBU7G59P;
  3. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  4. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  5. /**
  6.  * @internal This class has been auto-generated by the Symfony Dependency Injection Component.
  7.  */
  8. class getDoctrine_Orm_DefaultEntityManagerService extends Contao_ManagerBundle_HttpKernel_ContaoKernelDevDebugContainer
  9. {
  10.     /**
  11.      * Gets the public 'doctrine.orm.default_entity_manager' shared service.
  12.      *
  13.      * @return \Doctrine\ORM\EntityManager
  14.      */
  15.     public static function do($container$lazyLoad true)
  16.     {
  17.         include_once \dirname(__DIR__4).'/vendor/doctrine/common/src/Proxy/Autoloader.php';
  18.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/Autoloader.php';
  19.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/ObjectManager.php';
  20.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManagerInterface.php';
  21.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php';
  22.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php';
  23.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Psr6/CacheAdapter.php';
  24.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/Cache.php';
  25.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FlushableCache.php';
  26.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ClearableCache.php';
  27.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiGetCache.php';
  28.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiDeleteCache.php';
  29.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiPutCache.php';
  30.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/MultiOperationCache.php';
  31.         include_once \dirname(__DIR__4).'/vendor/doctrine/cache/lib/Doctrine/Common/Cache/CacheProvider.php';
  32.         include_once \dirname(__DIR__4).'/vendor/symfony/cache/DoctrineProvider.php';
  33.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/MappingDriver.php';
  34.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/MappingDriver.php';
  35.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/MappingDriverChain.php';
  36.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/ColocatedMappingDriver.php';
  37.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/AnnotationDriver.php';
  38.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/CompatibilityAnnotationDriver.php';
  39.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/ReflectionBasedDriver.php';
  40.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php';
  41.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/NamingStrategy.php';
  42.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/DefaultNamingStrategy.php';
  43.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/QuoteStrategy.php';
  44.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/SQLResultCasing.php';
  45.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php';
  46.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/EntityListenerResolver.php';
  47.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/EntityListenerServiceResolver.php';
  48.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/ContainerEntityListenerResolver.php';
  49.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/RepositoryFactory.php';
  50.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php';
  51.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/ManagerConfigurator.php';
  52.         $a = ($container->services['doctrine.dbal.default_connection'] ?? $container->getDoctrine_Dbal_DefaultConnectionService());
  53.         if (isset($container->services['doctrine.orm.default_entity_manager'])) {
  54.             return $container->services['doctrine.orm.default_entity_manager'];
  55.         }
  56.         $b = ($container->privates['doctrine.dbal.default_connection.event_manager'] ?? $container->getDoctrine_Dbal_DefaultConnection_EventManagerService());
  57.         if (isset($container->services['doctrine.orm.default_entity_manager'])) {
  58.             return $container->services['doctrine.orm.default_entity_manager'];
  59.         }
  60.         $c = new \Doctrine\ORM\Configuration();
  61.         $d \Doctrine\Common\Cache\Psr6\CacheAdapter::wrap(new \Symfony\Component\Cache\DoctrineProvider(($container->privates['doctrine.system_cache_pool'] ?? $container->getDoctrine_SystemCachePoolService())));
  62.         $e = new \Doctrine\Persistence\Mapping\Driver\MappingDriverChain();
  63.         $e->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(($container->privates['annotations.cached_reader'] ?? $container->load('getAnnotations_CachedReaderService')), [=> (\dirname(__DIR__4).'/vendor/contao/core-bundle/src/Entity')], false), 'Contao\\CoreBundle\\Entity');
  64.         $c->setEntityNamespaces(['ContaoCoreBundle' => 'Contao\\CoreBundle\\Entity']);
  65.         $c->setMetadataCache($d);
  66.         $c->setQueryCache($d);
  67.         $c->setResultCache(\Doctrine\Common\Cache\Psr6\CacheAdapter::wrap(new \Symfony\Component\Cache\DoctrineProvider(($container->privates['doctrine.result_cache_pool'] ?? $container->getDoctrine_ResultCachePoolService()))));
  68.         $c->setMetadataDriverImpl(new \Doctrine\Bundle\DoctrineBundle\Mapping\MappingDriver($e, new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [
  69.             'doctrine.ulid_generator' => ['privates''doctrine.ulid_generator''getDoctrine_UlidGeneratorService'true],
  70.             'doctrine.uuid_generator' => ['privates''doctrine.uuid_generator''getDoctrine_UuidGeneratorService'true],
  71.         ], [
  72.             'doctrine.ulid_generator' => '?',
  73.             'doctrine.uuid_generator' => '?',
  74.         ])));
  75.         $c->setProxyDir(($container->targetDir.''.'/doctrine/orm/Proxies'));
  76.         $c->setProxyNamespace('Proxies');
  77.         $c->setAutoGenerateProxyClasses(true);
  78.         $c->setSchemaIgnoreClasses([]);
  79.         $c->setClassMetadataFactoryName('Doctrine\\Bundle\\DoctrineBundle\\Mapping\\ClassMetadataFactory');
  80.         $c->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
  81.         $c->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
  82.         $c->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  83.         $c->setEntityListenerResolver(new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver($container));
  84.         $c->setLazyGhostObjectEnabled(false);
  85.         $c->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [
  86.             'contao.repository.cron_job' => ['privates''contao.repository.cron_job''getContao_Repository_CronJobService'true],
  87.             'contao.repository.remember_me' => ['privates''contao.repository.remember_me''getContao_Repository_RememberMeService'true],
  88.         ], [
  89.             'contao.repository.cron_job' => '?',
  90.             'contao.repository.remember_me' => '?',
  91.         ])));
  92.         $container->services['doctrine.orm.default_entity_manager'] = $instance = new \Doctrine\ORM\EntityManager($a$c$b);
  93.         (new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))->configure($instance);
  94.         return $instance;
  95.     }
  96. }