mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/11415] Make migrator/ext.manager dependencies of the base ext class
PHPBB3-11415
This commit is contained in:
@@ -133,13 +133,15 @@ class phpbb_extension_manager
|
||||
{
|
||||
$extension_class_name = 'phpbb_ext_' . str_replace('/', '_', $name) . '_ext';
|
||||
|
||||
$migrator = $this->container->get('migrator');
|
||||
|
||||
if (class_exists($extension_class_name))
|
||||
{
|
||||
return new $extension_class_name($this->container, $name, $this->get_extension_path($name, true));
|
||||
return new $extension_class_name($this->container, $this, $migrator, $name, $this->get_extension_path($name, true));
|
||||
}
|
||||
else
|
||||
{
|
||||
return new phpbb_extension_base($this->container, $name, $this->get_extension_path($name, true));
|
||||
return new phpbb_extension_base($this->container, $this, $migrator, $name, $this->get_extension_path($name, true));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user