diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-07-04 21:36:25 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-07-07 01:02:49 +0200 |
commit | 5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e (patch) | |
tree | c0a9d93f93a4f1b94ee28acd384f8e2dac922ec1 /phpBB/phpbb/di/container_builder.php | |
parent | 285656a6d4b708c2ff40b85c591ef361114ca717 (diff) | |
download | forums-5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e.tar forums-5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e.tar.gz forums-5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e.tar.bz2 forums-5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e.tar.xz forums-5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e.zip |
[ticket/12775] Inject the connection when created in the container
PHPBB3-12775
Diffstat (limited to 'phpBB/phpbb/di/container_builder.php')
-rw-r--r-- | phpBB/phpbb/di/container_builder.php | 5 |
1 files 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); } } |