mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12775] Inject the connection when created in the container
PHPBB3-12775
This commit is contained in:
parent
285656a6d4
commit
5b11ee8c97
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue