mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:21:43 +02:00
[ticket/12775] Inject the connection when created in the container
PHPBB3-12775
This commit is contained in:
@@ -183,8 +183,7 @@ class container_builder
|
|||||||
|
|
||||||
$this->container->set('config.php', $this->config_php_file);
|
$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;
|
return $this->container;
|
||||||
}
|
}
|
||||||
@@ -294,7 +293,7 @@ class container_builder
|
|||||||
{
|
{
|
||||||
if ($this->dbal_connection !== null)
|
if ($this->dbal_connection !== null)
|
||||||
{
|
{
|
||||||
$this->container->set('dbal.conn', $this->dbal_connection);
|
$this->container->get('dbal.conn')->set_driver($this->dbal_connection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user