var/cache/dev/Container7WJ2V3o/getDoctrine_Orm_DefaultEntityManagerService.php line 75

Open in your IDE?
  1. <?php
  2. namespace Container7WJ2V3o;
  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 App_KernelDevDebugContainer
  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/dbal/lib/Doctrine/DBAL/Configuration.php';
  23.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Configuration.php';
  24.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/MappingDriver.php';
  25.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/MappingDriver.php';
  26.         include_once \dirname(__DIR__4).'/vendor/doctrine/persistence/src/Persistence/Mapping/Driver/MappingDriverChain.php';
  27.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/NamingStrategy.php';
  28.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/UnderscoreNamingStrategy.php';
  29.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/QuoteStrategy.php';
  30.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/SQLResultCasing.php';
  31.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/DefaultQuoteStrategy.php';
  32.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/EntityListenerResolver.php';
  33.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/EntityListenerServiceResolver.php';
  34.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Mapping/ContainerEntityListenerResolver.php';
  35.         include_once \dirname(__DIR__4).'/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/RepositoryFactory.php';
  36.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/Repository/ContainerRepositoryFactory.php';
  37.         include_once \dirname(__DIR__4).'/vendor/doctrine/doctrine-bundle/ManagerConfigurator.php';
  38.         $a = new \Doctrine\ORM\Configuration();
  39.         $b = new \Doctrine\Persistence\Mapping\Driver\MappingDriverChain();
  40.         $b->addDriver(($container->privates['doctrine.orm.default_annotation_metadata_driver'] ?? $container->load('getDoctrine_Orm_DefaultAnnotationMetadataDriverService')), 'App\\Entity');
  41.         $a->setEntityNamespaces(['App' => 'App\\Entity']);
  42.         $a->setMetadataCache(new \Symfony\Component\Cache\Adapter\ArrayAdapter());
  43.         $a->setQueryCache(($container->privates['cache.doctrine.orm.default.query'] ?? $container->getCache_Doctrine_Orm_Default_QueryService()));
  44.         $a->setResultCache(($container->privates['cache.doctrine.orm.default.result'] ?? $container->getCache_Doctrine_Orm_Default_ResultService()));
  45.         $a->setMetadataDriverImpl(new \Doctrine\Bundle\DoctrineBundle\Mapping\MappingDriver($b, new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [
  46.             'doctrine.ulid_generator' => ['privates''doctrine.ulid_generator''getDoctrine_UlidGeneratorService'true],
  47.             'doctrine.uuid_generator' => ['privates''doctrine.uuid_generator''getDoctrine_UuidGeneratorService'true],
  48.         ], [
  49.             'doctrine.ulid_generator' => '?',
  50.             'doctrine.uuid_generator' => '?',
  51.         ])));
  52.         $a->setProxyDir(($container->targetDir.''.'/doctrine/orm/Proxies'));
  53.         $a->setProxyNamespace('Proxies');
  54.         $a->setAutoGenerateProxyClasses(true);
  55.         $a->setSchemaIgnoreClasses([]);
  56.         $a->setClassMetadataFactoryName('Doctrine\\Bundle\\DoctrineBundle\\Mapping\\ClassMetadataFactory');
  57.         $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
  58.         $a->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy(0true));
  59.         $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  60.         $a->setEntityListenerResolver(new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerEntityListenerResolver($container));
  61.         $a->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($container->getService, [
  62.             'App\\Repository\\AppConfigRepository' => ['privates''App\\Repository\\AppConfigRepository''getAppConfigRepositoryService'true],
  63.             'App\\Repository\\OrdersRepository' => ['privates''App\\Repository\\OrdersRepository''getOrdersRepositoryService'true],
  64.         ], [
  65.             'App\\Repository\\AppConfigRepository' => '?',
  66.             'App\\Repository\\OrdersRepository' => '?',
  67.         ])));
  68.         $container->services['doctrine.orm.default_entity_manager'] = $instance = new \Doctrine\ORM\EntityManager(($container->services['doctrine.dbal.default_connection'] ?? $container->load('getDoctrine_Dbal_DefaultConnectionService')), $a);
  69.         (new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator([], []))->configure($instance);
  70.         return $instance;
  71.     }
  72. }