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:
@@ -6,9 +6,10 @@ services:
|
||||
- @installer.helper.database
|
||||
- @filesystem
|
||||
- @installer.helper.iohandler
|
||||
# - @installer.helper.container_factory
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
tags:
|
||||
- { name: install_database_install, order: 1 }
|
||||
|
||||
installer.install_database.add_default_data:
|
||||
class: phpbb\install\module\install_database\task\add_default_data
|
||||
@@ -19,6 +20,8 @@ services:
|
||||
- @installer.helper.container_factory
|
||||
- @language
|
||||
- %core.root_path%
|
||||
tags:
|
||||
- { name: install_database_install, order: 2 }
|
||||
|
||||
installer.install_database.add_config_settings:
|
||||
class: phpbb\install\module\install_database\task\add_config_settings
|
||||
@@ -29,9 +32,20 @@ services:
|
||||
- @installer.helper.container_factory
|
||||
- @language
|
||||
- %core.root_path%
|
||||
tags:
|
||||
- { name: install_database_install, order: 3 }
|
||||
|
||||
installer.module.install_database_collection:
|
||||
class: phpbb\di\ordered_service_collection
|
||||
arguments:
|
||||
- @service_container
|
||||
tags:
|
||||
- { name: service_collection, tag: install_database_install }
|
||||
|
||||
installer.module.database_install:
|
||||
class: phpbb\install\module\install_database\module
|
||||
parent: installer.module_base
|
||||
arguments:
|
||||
- ["installer.install_database.create_schema", "installer.install_database.add_default_data", "installer.install_database.add_config_settings"]
|
||||
- @installer.module.install_database_collection
|
||||
tags:
|
||||
- { name: installer_install_module, order: 4 }
|
||||
|
Reference in New Issue
Block a user