aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/di/container_builder.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-07-04 21:36:25 +0200
committerTristan Darricau <github@nicofuma.fr>2014-07-07 01:02:49 +0200
commit5b11ee8c97e88367fc39b90b6a871e3bf16f7d1e (patch)
treec0a9d93f93a4f1b94ee28acd384f8e2dac922ec1 /phpBB/phpbb/di/container_builder.php
parent285656a6d4b708c2ff40b85c591ef361114ca717 (diff)
downloadforums-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.php5
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);
}
}