services:
# ----- Ban management -----
    ban.manager:
        class: \phpbb\ban\manager
        arguments:
            - '@ban.type_collection'
            - '@cache.driver'
            - '@dbal.conn'
            - '@language'
            - '@log'
            - '@user'
            - '%tables.bans%'
            - '%tables.users%'

# ----- Ban types -----
    ban.type_collection:
        class: \phpbb\di\service_collection
        arguments:
            - '@service_container'
        tags:
            - { name: service_collection, tag: ban.type }

    ban.type.email:
        class: \phpbb\ban\type\email
        arguments:
            - '@dbal.conn'
            - '%tables.bans%'
            - '%tables.users%'
            - '%tables.sessions%'
            - '%tables.sessions_keys%'
        tags:
            - { name: ban.type }

    ban.type.ip:
        class: \phpbb\ban\type\ip
        arguments:
            - '@dbal.conn'
            - '%tables.bans%'
            - '%tables.users%'
            - '%tables.sessions%'
            - '%tables.sessions_keys%'
        tags:
            - { name: ban.type }

    ban.type.user:
        class: \phpbb\ban\type\user
        arguments:
            - '@dbal.conn'
            - '%tables.bans%'
            - '%tables.users%'
            - '%tables.sessions%'
            - '%tables.sessions_keys%'
        tags:
            - { name: ban.type }
