1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-23 18:11:47 +02:00

[ticket/12775] Inject the connection when created in the container

PHPBB3-12775
This commit is contained in:
Tristan Darricau
2014-07-04 21:36:25 +02:00
parent 285656a6d4
commit 5b11ee8c97

View File

@@ -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);
}
}