mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11386] Fix circular reference error & serialize error
PHPBB3-11386
This commit is contained in:
@@ -72,12 +72,11 @@ class phpbb_db_migrator
|
||||
/**
|
||||
* Constructor of the database migrator
|
||||
*/
|
||||
public function __construct(phpbb_config $config, phpbb_db_driver $db, phpbb_db_tools $db_tools, phpbb_extension_manager $extension_manager, $migrations_table, $phpbb_root_path, $php_ext, $table_prefix, $tools)
|
||||
public function __construct(phpbb_config $config, phpbb_db_driver $db, phpbb_db_tools $db_tools, $migrations_table, $phpbb_root_path, $php_ext, $table_prefix, $tools)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->db = $db;
|
||||
$this->db_tools = $db_tools;
|
||||
$this->extension_manager = $extension_manager;
|
||||
|
||||
$this->migrations_table = $migrations_table;
|
||||
|
||||
@@ -94,6 +93,16 @@ class phpbb_db_migrator
|
||||
$this->load_migration_state();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Extension Manager (required)
|
||||
*
|
||||
* Not in constructor to prevent circular reference error
|
||||
*/
|
||||
public function set_extension_manager(phpbb_extension_manager $extension_manager)
|
||||
{
|
||||
$this->extension_manager = $extension_manager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads all migrations and their application state from the database.
|
||||
*
|
||||
|
Reference in New Issue
Block a user