mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 06:25:04 +02:00
[ticket/13777] Deduplicate migration service definitions
PHPBB3-13777
This commit is contained in:
parent
71d03647f0
commit
e877a752be
@ -10,6 +10,7 @@ imports:
|
||||
- { resource: services_feed.yml }
|
||||
- { resource: services_help.yml }
|
||||
- { resource: services_language.yml }
|
||||
- { resource: services_migrator.yml }
|
||||
- { resource: services_mimetype_guesser.yml }
|
||||
- { resource: services_module.yml }
|
||||
- { resource: services_notification.yml }
|
||||
|
@ -79,66 +79,3 @@ services:
|
||||
- %core.root_path%
|
||||
- @request
|
||||
- @dbal.conn.driver
|
||||
|
||||
# ----- Migrator -----
|
||||
migrator:
|
||||
class: phpbb\db\migrator
|
||||
arguments:
|
||||
- @service_container
|
||||
- @config
|
||||
- @dbal.conn
|
||||
- @dbal.tools
|
||||
- %tables.migrations%
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
- %core.table_prefix%
|
||||
- @migrator.tool_collection
|
||||
- @migrator.helper
|
||||
|
||||
migrator.helper:
|
||||
class: phpbb\db\migration\helper
|
||||
|
||||
# ----- Migrator's tools -----
|
||||
migrator.tool_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
- @service_container
|
||||
tags:
|
||||
- { name: service_collection, tag: migrator.tool }
|
||||
|
||||
migrator.tool.config:
|
||||
class: phpbb\db\migration\tool\config
|
||||
arguments:
|
||||
- @config
|
||||
tags:
|
||||
- { name: migrator.tool }
|
||||
|
||||
migrator.tool.config_text:
|
||||
class: phpbb\db\migration\tool\config_text
|
||||
arguments:
|
||||
- @config_text
|
||||
tags:
|
||||
- { name: migrator.tool }
|
||||
|
||||
migrator.tool.module:
|
||||
class: phpbb\db\migration\tool\module
|
||||
arguments:
|
||||
- @dbal.conn
|
||||
- @cache
|
||||
- @user
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
- %tables.modules%
|
||||
tags:
|
||||
- { name: migrator.tool }
|
||||
|
||||
migrator.tool.permission:
|
||||
class: phpbb\db\migration\tool\permission
|
||||
arguments:
|
||||
- @dbal.conn
|
||||
- @cache
|
||||
- @auth
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
tags:
|
||||
- { name: migrator.tool }
|
||||
|
@ -1,7 +1,9 @@
|
||||
services:
|
||||
# ----- Migrator -----
|
||||
migrator:
|
||||
class: phpbb\db\migrator
|
||||
arguments:
|
||||
- @service_container
|
||||
- @config
|
||||
- @dbal.conn
|
||||
- @dbal.tools
|
||||
@ -15,6 +17,7 @@ services:
|
||||
migrator.helper:
|
||||
class: phpbb\db\migration\helper
|
||||
|
||||
# ----- Migrator's tools -----
|
||||
migrator.tool_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
@ -42,6 +45,7 @@ services:
|
||||
- @dbal.conn
|
||||
- @cache
|
||||
- @user
|
||||
- @module.manager
|
||||
- %core.root_path%
|
||||
- %core.php_ext%
|
||||
- %tables.modules%
|
||||
|
Loading…
x
Reference in New Issue
Block a user