aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_twig.yml
blob: 6f7015529593fd10b19a60b24f4effa483902d63 (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
parameters:
    core.template.cache_path: '%core.cache_dir%twig/'

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

    template.twig.lexer:
        class: phpbb\template\twig\lexer
        lazy: true
        arguments:
            - '@template.twig.environment'

    template.twig.loader:
        class: phpbb\template\twig\loader
        arguments:
            - '@filesystem'

    template.twig.extensions.collection:
        class: phpbb\di\service_collection
        arguments:
            - '@service_container'
        tags:
            - { name: service_collection, tag: twig.extension }

    template.twig.extensions.phpbb:
        class: phpbb\template\twig\extension
        arguments:
            - '@template_context'
            - '@template.twig.environment'
            - '@language'
        tags:
            - { name: twig.extension }

    template.twig.extensions.avatar:
        class: phpbb\template\twig\extension\avatar
        tags:
            - { name: twig.extension }

    template.twig.extensions.config:
        class: phpbb\template\twig\extension\config
        arguments:
            - '@config'
        tags:
            - { name: twig.extension }

    template.twig.extensions.routing:
        class: phpbb\template\twig\extension\routing
        arguments:
            - '@routing.helper'
        tags:
            - { name: twig.extension }

    template.twig.extensions.username:
        class: phpbb\template\twig\extension\username
        tags:
            - { name: twig.extension }

    template.twig.extensions.debug:
        class: Twig_Extension_Debug

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

    template_context:
        class: phpbb\template\context