aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services.yml
blob: 2d4720029dad5d071b956055424842bfabe7e8d5 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
imports:
    - { resource: services_attachment.yml }
    - { resource: services_auth.yml }
    - { resource: services_avatar.yml }
    - { resource: services_captcha.yml }
    - { resource: services_console.yml }
    - { resource: services_content.yml }
    - { resource: services_cron.yml }
    - { resource: services_db.yml }
    - { resource: services_event.yml }
    - { resource: services_feed.yml }
    - { resource: services_files.yml }
    - { resource: services_filesystem.yml }
    - { resource: services_help.yml }
    - { resource: services_hook.yml }
    - { resource: services_http.yml }
    - { resource: services_language.yml }
    - { resource: services_migrator.yml }
    - { resource: services_mimetype_guesser.yml }
    - { resource: services_module.yml }
    - { resource: services_notification.yml }
    - { resource: services_password.yml }
    - { resource: services_php.yml }
    - { resource: services_profilefield.yml }
    - { resource: services_report.yml }
    - { resource: services_routing.yml }
    - { resource: services_text_formatter.yml }
    - { resource: services_text_reparser.yml }
    - { resource: services_twig.yml }
    - { resource: services_ucp.yml }
    - { resource: services_user.yml }

    - { resource: tables.yml }
    - { resource: parameters.yml }

services:
    cache:
        class: phpbb\cache\service
        arguments:
             - '@cache.driver'
             - '@config'
             - '@dbal.conn'
             - '%core.root_path%'
             - '%core.php_ext%'

    cache.driver:
        class: '%cache.driver.class%'

    class_loader:
        class: phpbb\class_loader
        arguments:
            - phpbb\
            - '%core.root_path%includes/'
            - '%core.php_ext%'
        calls:
            - [register, []]
            - [set_cache, ['@cache.driver']]

    class_loader.ext:
        class: phpbb\class_loader
        arguments:
            - \
            - '%core.root_path%ext/'
            - '%core.php_ext%'
        calls:
            - [register, []]
            - [set_cache, ['@cache.driver']]

    config:
        class: phpbb\config\db
        arguments:
            - '@dbal.conn'
            - '@cache.driver'
            - '%tables.config%'

    config.php:
        synthetic: true

    config_text:
        class: phpbb\config\db_text
        arguments:
            - '@dbal.conn'
            - '%tables.config_text%'

    controller.helper:
        class: phpbb\controller\helper
        arguments:
            - '@template'
            - '@user'
            - '@config'
            - '@symfony_request'
            - '@request'
            - '@routing.helper'

    controller.resolver:
        class: phpbb\controller\resolver
        arguments:
            - '@service_container'
            - '%core.root_path%'
            - '@template'

    ext.manager:
        class: phpbb\extension\manager
        arguments:
            - '@service_container'
            - '@dbal.conn'
            - '@config'
            - '@filesystem'
            - '%tables.ext%'
            - '%core.root_path%'
            - '%core.php_ext%'
            - '@cache'

    file_downloader:
        class: phpbb\file_downloader

    file_locator:
        class: phpbb\routing\file_locator
        arguments:
            - '@filesystem'
            - '%core.root_path%'

    group_helper:
        class: phpbb\group\helper
        arguments:
            - '@auth'
            - '@cache'
            - '@config'
            - '@language'
            - '@dispatcher'
            - '@path_helper'
            - '@user'

    log:
        class: phpbb\log\log
        arguments:
            - '@dbal.conn'
            - '@user'
            - '@auth'
            - '@dispatcher'
            - '%core.root_path%'
            - '%core.adm_relative_path%'
            - '%core.php_ext%'
            - '%tables.log%'

    path_helper:
        class: phpbb\path_helper
        arguments:
            - '@symfony_request'
            - '@filesystem'
            - '@request'
            - '%core.root_path%'
            - '%core.php_ext%'
            - '%core.adm_relative_path%'

    plupload:
        class: phpbb\plupload\plupload
        arguments:
            - '%core.root_path%'
            - '@config'
            - '@request'
            - '@user'
            - '@php_ini'
            - '@mimetype.guesser'

    upload_imagesize:
        class: FastImageSize\FastImageSize

    version_helper:
        class: phpbb\version_helper
        shared: false
        arguments:
            - '@cache'
            - '@config'
            - '@file_downloader'
            - '@user'