aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_profilefield.yml
blob: 5ccfef91483378de898bf09ddc9dfb9d0b921ae2 (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
services:
    profilefields.manager:
        class: phpbb\profilefields\manager
        arguments:
            - @auth
            - @dbal.conn
            - @dispatcher
            - @request
            - @template
            - @profilefields.type_collection
            - @user
            - %tables.profile_fields%
            - %tables.profile_fields_language%
            - %tables.profile_fields_data%

    profilefields.lang_helper:
        class: phpbb\profilefields\lang_helper
        arguments:
            - @dbal.conn
            - %tables.profile_fields_options_language%

# ----- Profile fields types -----
    profilefields.type_collection:
        class: phpbb\di\service_collection
        arguments:
            - @service_container
        tags:
            - { name: service_collection, tag: profilefield.type }

    profilefields.type.bool:
        class: phpbb\profilefields\type\type_bool
        arguments:
            - @profilefields.lang_helper
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.date:
        class: phpbb\profilefields\type\type_date
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.dropdown:
        class: phpbb\profilefields\type\type_dropdown
        arguments:
            - @profilefields.lang_helper
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.googleplus:
        class: phpbb\profilefields\type\type_googleplus
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.int:
        class: phpbb\profilefields\type\type_int
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.string:
        class: phpbb\profilefields\type\type_string
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.text:
        class: phpbb\profilefields\type\type_text
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }

    profilefields.type.url:
        class: phpbb\profilefields\type\type_url
        arguments:
            - @request
            - @template
            - @user
        tags:
            - { name: profilefield.type }