1services:
2# ----- Migrator -----
3    migrator:
4        class: phpbb\db\migrator
5        arguments:
6            - '@service_container'
7            - '@config'
8            - '@dbal.conn'
9            - '@dbal.tools'
10            - '%tables.migrations%'
11            - '%core.root_path%'
12            - '%core.php_ext%'
13            - '%core.table_prefix%'
14            - '@migrator.tool_collection'
15            - '@migrator.helper'
16
17    migrator.helper:
18        class: phpbb\db\migration\helper
19
20# ----- Migrator's tools -----
21    migrator.tool_collection:
22        class: phpbb\di\service_collection
23        arguments:
24            - '@service_container'
25        tags:
26            - { name: service_collection, tag: migrator.tool }
27
28    migrator.tool.config:
29        class: phpbb\db\migration\tool\config
30        arguments:
31            - '@config'
32        tags:
33            - { name: migrator.tool }
34
35    migrator.tool.config_text:
36        class: phpbb\db\migration\tool\config_text
37        arguments:
38            - '@config_text'
39        tags:
40            - { name: migrator.tool }
41
42    migrator.tool.module:
43        class: phpbb\db\migration\tool\module
44        arguments:
45            - '@dbal.conn'
46            - '@cache'
47            - '@user'
48            - '@module.manager'
49            - '%core.root_path%'
50            - '%core.php_ext%'
51            - '%tables.modules%'
52        tags:
53            - { name: migrator.tool }
54
55    migrator.tool.permission:
56        class: phpbb\db\migration\tool\permission
57        arguments:
58            - '@dbal.conn'
59            - '@cache'
60            - '@auth'
61            - '%core.root_path%'
62            - '%core.php_ext%'
63        tags:
64            - { name: migrator.tool }
65