var/cache/dev/ContainerCIEWvBA/getDoctrine_Dbal_DefaultConnectionService.php line 43

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.dbal.default_connection' shared service.
  6. include_once $this->targetDirs[3].'/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Connection.php';
  7. include_once $this->targetDirs[3].'/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php';
  8. include_once $this->targetDirs[3].'/src/PaaBundle/Component/Connection/ConnectionWrapper.php';
  9. include_once $this->targetDirs[3].'/vendor/doctrine/dbal/lib/Doctrine/DBAL/Configuration.php';
  10. include_once $this->targetDirs[3].'/vendor/doctrine/dbal/lib/Doctrine/DBAL/Logging/LoggerChain.php';
  11. include_once $this->targetDirs[3].'/vendor/symfony/doctrine-bridge/Logger/DbalLogger.php';
  12. include_once $this->targetDirs[3].'/vendor/doctrine/event-manager/lib/Doctrine/Common/EventManager.php';
  13. include_once $this->targetDirs[3].'/vendor/symfony/doctrine-bridge/ContainerAwareEventManager.php';
  14. include_once $this->targetDirs[3].'/vendor/doctrine/event-manager/lib/Doctrine/Common/EventSubscriber.php';
  15. include_once $this->targetDirs[3].'/vendor/friendsofsymfony/user-bundle/Doctrine/UserListener.php';
  16. include_once $this->targetDirs[3].'/vendor/doctrine/doctrine-bundle/ConnectionFactory.php';
  17. $a = new \Doctrine\DBAL\Configuration();
  18. $b = new \Doctrine\DBAL\Logging\LoggerChain();
  19. $c = new \Symfony\Bridge\Monolog\Logger('doctrine');
  20. $c->pushProcessor(($this->privates['debug.log_processor'] ?? $this->getDebug_LogProcessorService()));
  21. $c->pushHandler(($this->privates['monolog.handler.main'] ?? $this->getMonolog_Handler_MainService()));
  22. $b->addLogger(new \Symfony\Bridge\Doctrine\Logger\DbalLogger($c, ($this->privates['debug.stopwatch'] ?? ($this->privates['debug.stopwatch'] = new \Symfony\Component\Stopwatch\Stopwatch(true)))));
  23. $b->addLogger(($this->privates['doctrine.dbal.logger.profiling.default'] ?? ($this->privates['doctrine.dbal.logger.profiling.default'] = new \Doctrine\DBAL\Logging\DebugStack())));
  24. $a->setSQLLogger($b);
  25. $d = new \Symfony\Bridge\Doctrine\ContainerAwareEventManager(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [
  26.     'doctrine.orm.auto_generate_proxy_classes_listeners.attach_entity_listeners' => ['privates''doctrine.orm.auto_generate_proxy_classes_listeners.attach_entity_listeners''getDoctrine_Orm_AutoGenerateProxyClassesListeners_AttachEntityListenersService.php'true],
  27.     'doctrine.orm.default_listeners.attach_entity_listeners' => ['privates''doctrine.orm.default_listeners.attach_entity_listeners''getDoctrine_Orm_DefaultListeners_AttachEntityListenersService.php'true],
  28. ]));
  29. $d->addEventSubscriber(new \FOS\UserBundle\Doctrine\UserListener(($this->privates['fos_user.util.password_updater'] ?? $this->load('getFosUser_Util_PasswordUpdaterService.php')), ($this->privates['fos_user.util.canonical_fields_updater'] ?? $this->getFosUser_Util_CanonicalFieldsUpdaterService())));
  30. $d->addEventListener([=> 'loadClassMetadata'], 'doctrine.orm.auto_generate_proxy_classes_listeners.attach_entity_listeners');
  31. $d->addEventListener([=> 'loadClassMetadata'], 'doctrine.orm.default_listeners.attach_entity_listeners');
  32. $this->services['doctrine.dbal.default_connection'] = $instance = (new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory([]))->createConnection(['charset' => 'utf8''driver' => $this->getEnv('resolve:doctrine_database_driver'), 'host' => $this->getEnv('resolve:doctrine_database_host'), 'port' => $this->getEnv('resolve:doctrine_database_port'), 'dbname' => $this->getEnv('resolve:doctrine_database_name'), 'user' => $this->getEnv('resolve:doctrine_database_user'), 'password' => $this->getEnv('resolve:doctrine_database_password'), 'driverOptions' => [], 'wrapperClass' => 'App\\PaaBundle\\Component\\Connection\\ConnectionWrapper''serverVersion' => '4''defaultTableOptions' => ['charset' => 'utf8']], $a$d, []);
  33. $instance->setContainer($this);
  34. $instance->initialise();
  35. return $instance;