mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 22:41:28 +02:00
[ticket/12620] Creates one di extension per phpBB extension
PHPBB3-12620
This commit is contained in:
@@ -160,7 +160,17 @@ class container_builder
|
||||
if ($this->use_extensions)
|
||||
{
|
||||
$installed_exts = $this->get_installed_extensions();
|
||||
$container_extensions[] = new \phpbb\di\extension\ext($installed_exts);
|
||||
foreach ($installed_exts as $ext_name => $path)
|
||||
{
|
||||
$extension_class = '\\' . str_replace('/', '\\', $ext_name) . '\\di\extension';
|
||||
|
||||
if (!class_exists($extension_class))
|
||||
{
|
||||
$extension_class = '\phpbb\extension\di\extension_base';
|
||||
}
|
||||
|
||||
$container_extensions[] = new $extension_class($ext_name, $path);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->inject_config)
|
||||
|
Reference in New Issue
Block a user