mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12775] Add the definition of dbal.conn in fixtures/config/services.yml
PHPBB3-12775
This commit is contained in:
parent
5b11ee8c97
commit
e2cbaf4f1a
3 changed files with 20 additions and 7 deletions
|
@ -183,7 +183,10 @@ class container_builder
|
||||||
|
|
||||||
$this->container->set('config.php', $this->config_php_file);
|
$this->container->set('config.php', $this->config_php_file);
|
||||||
|
|
||||||
|
if ($this->compile_container)
|
||||||
|
{
|
||||||
$this->inject_dbal();
|
$this->inject_dbal();
|
||||||
|
}
|
||||||
|
|
||||||
return $this->container;
|
return $this->container;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,13 @@ parameters:
|
||||||
core: true
|
core: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
dispatcher:
|
|
||||||
class: phpbb\db\driver\container_mock
|
|
||||||
|
|
||||||
config.php:
|
config.php:
|
||||||
synthetic: true
|
synthetic: true
|
||||||
|
|
||||||
|
dbal.conn:
|
||||||
|
class: phpbb\db\driver\factory
|
||||||
|
arguments:
|
||||||
|
- @service_container
|
||||||
|
|
||||||
|
dispatcher:
|
||||||
|
class: phpbb\db\driver\container_mock
|
||||||
|
|
|
@ -2,8 +2,13 @@ parameters:
|
||||||
other_config: true
|
other_config: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
dispatcher:
|
|
||||||
class: phpbb\db\driver\container_mock
|
|
||||||
|
|
||||||
config.php:
|
config.php:
|
||||||
synthetic: true
|
synthetic: true
|
||||||
|
|
||||||
|
dbal.conn:
|
||||||
|
class: phpbb\db\driver\factory
|
||||||
|
arguments:
|
||||||
|
- @service_container
|
||||||
|
|
||||||
|
dispatcher:
|
||||||
|
class: phpbb\db\driver\container_mock
|
||||||
|
|
Loading…
Add table
Reference in a new issue