mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13740] Use service collection instead of array of task names
PHPBB3-13740
This commit is contained in:
@@ -87,9 +87,7 @@ class config
|
||||
$this->installer_config = array();
|
||||
$this->system_data = array();
|
||||
$this->progress_data = array(
|
||||
'last_task_module_index' => 0,
|
||||
'last_task_module_name' => '', // Stores the service name of the latest finished module
|
||||
'last_task_index' => 0,
|
||||
'last_task_name' => '', // Stores the service name of the latest finished task
|
||||
'max_task_progress' => 0,
|
||||
'current_task_progress' => 0,
|
||||
@@ -180,24 +178,20 @@ class config
|
||||
* Saves the latest executed task
|
||||
*
|
||||
* @param string $task_service_name Name of the installer task service
|
||||
* @param int $task_index Index of the task in the task list array
|
||||
*/
|
||||
public function set_finished_task($task_service_name, $task_index)
|
||||
public function set_finished_task($task_service_name)
|
||||
{
|
||||
$this->progress_data['last_task_name'] = $task_service_name;
|
||||
$this->progress_data['last_task_index'] = $task_index;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set active module
|
||||
*
|
||||
* @param string $module_service_name Name of the installer module service
|
||||
* @param int $module_index Index of the module in the module list array
|
||||
*/
|
||||
public function set_active_module($module_service_name, $module_index)
|
||||
public function set_active_module($module_service_name)
|
||||
{
|
||||
$this->progress_data['last_task_module_name'] = $module_service_name;
|
||||
$this->progress_data['last_task_module_index'] = $module_index;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user