View file phpBB3/config/default/container/services_profilefield.yml

File size: 2.65Kb
services:
    profilefields.manager:
        class: phpbb\profilefields\manager
        arguments:
            - '@auth'
            - '@config_text'
            - '@dbal.conn'
            - '@dbal.tools'
            - '@dispatcher'
            - '@language'
            - '@log'
            - '@request'
            - '@template'
            - '@profilefields.type_collection'
            - '@user'
            - '%tables.profile_fields%'
            - '%tables.profile_fields_data%'
            - '%tables.profile_fields_options_language%'
            - '%tables.profile_fields_language%'

    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.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 }