1
0
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:
Nathaniel Guse
2013-05-01 15:18:53 -05:00
parent 60e3272839
commit 87b01fc854
2 changed files with 23 additions and 13 deletions

View File

@@ -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));
}
}