mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 02:06:32 +02:00
[ticket/12620] Add the support of the environments for the ext services
We look for an environment.yml file in the config/PHPBB_ENVIRONMENT/ directory of the extensionss. If the directory does not exist we look for the environment.yml file in the 'default' environment and finally for the services.yml file in the config/ directory. PHPBB3-12620
This commit is contained in:
@@ -59,6 +59,8 @@ namespace
|
||||
|
||||
// Checks use_extensions
|
||||
$this->assertTrue($container->hasParameter('enabled'));
|
||||
$this->assertTrue($container->hasParameter('enabled_2'));
|
||||
$this->assertTrue($container->hasParameter('enabled_3'));
|
||||
$this->assertFalse($container->hasParameter('disabled'));
|
||||
$this->assertFalse($container->hasParameter('available'));
|
||||
|
||||
@@ -201,6 +203,8 @@ namespace phpbb\db\driver
|
||||
{
|
||||
return array(
|
||||
array('ext_name' => 'vendor/enabled'),
|
||||
array('ext_name' => 'vendor/enabled-2'),
|
||||
array('ext_name' => 'vendor/enabled-3'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user