mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/11152] Throw error if services.yml is missing
PHPBB3-11152
This commit is contained in:
@@ -50,13 +50,10 @@ class phpbb_di_extension_core extends Extension
|
|||||||
* @throws InvalidArgumentException When provided tag is not defined in this extension
|
* @throws InvalidArgumentException When provided tag is not defined in this 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 = new YamlFileLoader($container, new FileLocator(phpbb_realpath($this->root_path . 'config')));
|
||||||
$loader->load('services.yml');
|
$loader->load('services.yml');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the recommended alias to use in XML.
|
* Returns the recommended alias to use in XML.
|
||||||
|
Reference in New Issue
Block a user