From 5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e Mon Sep 17 00:00:00 2001 From: Tristan Darricau Date: Fri, 4 Jul 2014 21:36:25 +0200 Subject: [PATCH] [ticket/12775] Inject the connection when created in the container PHPBB3-12775 --- phpBB/phpbb/di/container_builder.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/di/container_builder.php b/phpBB/phpbb/di/container_builder.php index 9cf29c8929..65db92ada0 100644 --- a/phpBB/phpbb/di/container_builder.php +++ b/phpBB/phpbb/di/container_builder.php @@ -183,8 +183,7 @@ class container_builder $this->container->set('config.php', $this->config_php_file); - // Frozen container, we can't modify either the services or the parameters - //$this->inject_dbal(); + $this->inject_dbal(); return $this->container; } @@ -294,7 +293,7 @@ class container_builder { if ($this->dbal_connection !== null) { - $this->container->set('dbal.conn', $this->dbal_connection); + $this->container->get('dbal.conn')->set_driver($this->dbal_connection); } }