1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-09 07:40:45 +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

@@ -8,6 +8,8 @@ services:
- @language
- %core.root_path%
- %core.php_ext%
tags:
- { name: install_data_install, order: 2 }
installer.install_data.add_languages:
class: phpbb\install\module\install_data\task\add_languages
@@ -15,15 +17,28 @@ services:
- @installer.helper.iohandler
- @installer.helper.container_factory
- @language.helper.language_file
tags:
- { name: install_data_install, order: 1 }
installer.install_data.add_modules:
class: phpbb\install\module\install_data\task\add_modules
arguments:
- @installer.helper.iohandler
- @installer.helper.container_factory
tags:
- { name: install_data_install, order: 3 }
installer.module.data_install_collection:
class: phpbb\di\ordered_service_collection
arguments:
- @service_container
tags:
- { name: service_collection, tag: install_data_install }
installer.module.data_install:
class: phpbb\install\module\install_data\module
parent: installer.module_base
arguments:
- ["installer.install_data.add_languages", "installer.install_data.add_bots", "installer.install_data.add_modules"]
- @installer.module.data_install_collection
tags:
- { name: installer_install_module, order: 5 }