aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_text_formatter.yml
blob: ec5421695d881afd8efe1911b96620d03200b158 (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
parameters:
    text_formatter.cache.dir: %core.root_path%cache/%core.environment%/
    text_formatter.cache.parser.key: _text_formatter_parser
    text_formatter.cache.renderer.key: _text_formatter_renderer

services:
    text_formatter.cache:
        alias: text_formatter.s9e.factory

    text_formatter.data_access:
        class: phpbb\textformatter\data_access
        arguments:
            - @dbal.conn
            - %tables.bbcodes%
            - %tables.smilies%
            - %tables.styles%
            - %tables.words%
            - %core.root_path%styles/

    text_formatter.parser:
        alias: text_formatter.s9e.parser

    text_formatter.renderer:
        alias: text_formatter.s9e.renderer

    text_formatter.utils:
        alias: text_formatter.s9e.utils

    text_formatter.s9e.factory:
        class: phpbb\textformatter\s9e\factory
        arguments:
            - @text_formatter.data_access
            - @cache.driver
            - %text_formatter.cache.dir%
            - %text_formatter.cache.parser.key%
            - %text_formatter.cache.renderer.key%

    text_formatter.s9e.parser:
        class: phpbb\textformatter\s9e\parser
        arguments:
            - @cache.driver
            - %text_formatter.cache.parser.key%
            - @user
            - @text_formatter.s9e.factory

    text_formatter.s9e.renderer:
        class: phpbb\textformatter\s9e\renderer
        arguments:
            - @cache.driver
            - %text_formatter.cache.dir%
            - %text_formatter.cache.renderer.key%
            - @text_formatter.s9e.factory
        calls:
            - [configure_smilies_path, [@config, @path_helper]]
            - [configure_user, [@user, @config, @auth]]

    text_formatter.s9e.utils:
        class: phpbb\textformatter\s9e\utils