aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/installer/container/services.yml
blob: 7203c0ab10da48a4a7e105673144125181dacdfa (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
imports:
    - { resource: services_installer.yml }
    - { resource: ../../default/container/services_event.yml }
    - { resource: ../../default/container/services_filesystem.yml }
    - { resource: ../../default/container/services_http.yml }
    - { resource: ../../default/container/services_language.yml }
    - { resource: ../../default/container/services_php.yml }
    - { resource: ../../default/container/services_routing.yml }
    - { resource: ../../default/container/services_twig.yml }

services:
    cache.driver:
        class: '%cache.driver.class%'
        arguments:
            - '%core.cache_dir%'

    config:
        class: phpbb\config\config
        arguments:
            -
                rand_seed: 'installer_seed'
                rand_seed_last_update: 0

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

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

    kernel_exception_subscriber:
        class: phpbb\install\event\kernel_exception_subscriber
        arguments:
            - '@phpbb.installer.controller.helper'
            - '@language'
            - '@template'
        tags:
            - { name: kernel.event_subscriber }

    language.loader:
        parent: language.loader_abstract

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

    routing.resources_locator.default:
        class: phpbb\routing\resources_locator\installer_resources_locator
        arguments:
            - '@filesystem'
            - '%core.root_path%'
            - '%core.environment%'
        tags:
            - { name: routing.resources_locator }

    template:
        class: phpbb\template\twig\twig
        arguments:
            - '@path_helper'
            - '@config'
            - '@template_context'
            - '@template.twig.environment'
            - '%core.template.cache_path%'
            - null
            - '@template.twig.extensions.collection'

    template.twig.environment:
        class: phpbb\template\twig\environment
        arguments:
            - '@config'
            - '@filesystem'
            - '@path_helper'
            - '%core.template.cache_path%'
            - null
            - '@template.twig.loader'
            - null
            - []
        calls:
            - [setLexer, ['@template.twig.lexer']]

    user:
        class: phpbb\user
        arguments:
            - '@language'
            - '%datetime.class%'

    console.exception_subscriber:
        class: phpbb\console\exception_subscriber
        arguments:
            - '@language'
            - '%debug.exceptions%'
        tags:
            - { name: kernel.event_subscriber }