aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_report.yml
blob: 2c5b3bf3d523c85b5e336dec5495ef8e85d529d2 (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
services:
# ----- Report controller -----
    phpbb.report.controller:
        class: phpbb\report\controller\report
        arguments:
            - '@config'
            - '@user'
            - '@template'
            - '@controller.helper'
            - '@request'
            - '@captcha.factory'
            - '@phpbb.report.handler_factory'
            - '@phpbb.report.report_reason_list_provider'
            - '%core.root_path%'
            - '%core.php_ext%'

# ----- Report handler factory -----
    phpbb.report.handler_factory:
        class: phpbb\report\handler_factory
        arguments:
            - '@service_container'

# ----- Report UI provider -----
    phpbb.report.report_reason_list_provider:
        class: phpbb\report\report_reason_list_provider
        arguments:
            - '@dbal.conn.driver'
            - '@template'
            - '@user'

# ----- Report handlers -----
# Service MUST NOT be shared for all the handlers to work correctly.
    phpbb.report.handlers.report_handler_pm:
        class: phpbb\report\report_handler_pm
        shared: false
        arguments:
            - '@dbal.conn.driver'
            - '@dispatcher'
            - '@config'
            - '@auth'
            - '@user'
            - '@notification_manager'

    phpbb.report.handlers.report_handler_post:
        class: phpbb\report\report_handler_post
        shared: false
        arguments:
            - '@dbal.conn.driver'
            - '@dispatcher'
            - '@config'
            - '@auth'
            - '@user'
            - '@notification_manager'