mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11152] Throw error if services.yml is missing
PHPBB3-11152
This commit is contained in:
parent
844770d223
commit
5616972195
1 changed files with 2 additions and 5 deletions
|
@ -51,11 +51,8 @@ class phpbb_di_extension_core extends Extension
|
||||||
*/
|
*/
|
||||||
public function load(array $config, ContainerBuilder $container)
|
public function load(array $config, ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
if (file_exists($this->root_path . 'config/services.yml'))
|
$loader = new YamlFileLoader($container, new FileLocator(phpbb_realpath($this->root_path . 'config')));
|
||||||
{
|
$loader->load('services.yml');
|
||||||
$loader = new YamlFileLoader($container, new FileLocator(phpbb_realpath($this->root_path . 'config')));
|
|
||||||
$loader->load('services.yml');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue