aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_migrator.yml
blob: 01bd7d3a11b09c166c24647ce41076c47f6d4bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
services:
# ----- 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
            - @module.manager
            - %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 }