1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-02 21:02:41 +02:00

[ticket/13740] Use service collection instead of array of task names

PHPBB3-13740
This commit is contained in:
Mate Bartus
2015-07-09 15:26:48 +02:00
parent 794726a464
commit 62103cec30
14 changed files with 221 additions and 242 deletions

View File

@@ -4,6 +4,8 @@ services:
arguments:
- @installer.helper.config
- @installer.helper.iohandler
tags:
- { name: install_obtain_data, order: 1 }
installer.obtain_data.obtain_board_data:
class: phpbb\install\module\obtain_data\task\obtain_board_data
@@ -11,6 +13,8 @@ services:
- @installer.helper.config
- @installer.helper.iohandler
- @language.helper.language_file
tags:
- { name: install_obtain_data, order: 5 }
installer.obtain_data.obtain_database_data:
class: phpbb\install\module\obtain_data\task\obtain_database_data
@@ -18,28 +22,45 @@ services:
- @installer.helper.database
- @installer.helper.config
- @installer.helper.iohandler
tags:
- { name: install_obtain_data, order: 2 }
installer.obtain_data.obtain_email_data:
class: phpbb\install\module\obtain_data\task\obtain_email_data
arguments:
- @installer.helper.config
- @installer.helper.iohandler
tags:
- { name: install_obtain_data, order: 4 }
installer.obtain_data.obtain_imagick_path:
class: phpbb\install\module\obtain_data\task\obtain_imagick_path
arguments:
- @installer.helper.config
tags:
- { name: install_obtain_data, order: 6 }
installer.obtain_data.obtain_server_data:
class: phpbb\install\module\obtain_data\task\obtain_server_data
arguments:
- @installer.helper.config
- @installer.helper.iohandler
tags:
- { name: install_obtain_data, order: 3 }
installer.module.install_obtain_data_collection:
class: phpbb\di\ordered_service_collection
arguments:
- @service_container
tags:
- { name: service_collection, tag: install_obtain_data }
installer.module.obtain_data_install:
class: phpbb\install\module\obtain_data\module
parent: installer.module_base
arguments:
- ["installer.obtain_data.obtain_admin_data", "installer.obtain_data.obtain_database_data", "installer.obtain_data.obtain_server_data", "installer.obtain_data.obtain_email_data", "installer.obtain_data.obtain_board_data", "installer.obtain_data.obtain_imagick_path"]
- @installer.module.install_obtain_data_collection
- true
- false
tags:
- { name: installer_install_module, order: 2 }