mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-01 20:33:16 +02:00
[ticket/9687] Add service definitions
PHPBB3-9687
This commit is contained in:
committed by
Marc Alexander
parent
7267df431f
commit
728b200cd9
41
phpBB/config/default/container/services_ban.yml
Normal file
41
phpBB/config/default/container/services_ban.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
# ----- Ban management -----
|
||||
ban.manager:
|
||||
class: \phpbb\ban\manager
|
||||
arguments:
|
||||
- '@ban.type_collection'
|
||||
- '@cache'
|
||||
- '@dbal.conn'
|
||||
- '@log'
|
||||
- '@user'
|
||||
- '%tables.bans%'
|
||||
- '%tables.users%'
|
||||
- '%tables.sessions%'
|
||||
- '%tables.sessions_keys%'
|
||||
|
||||
# ----- 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'
|
||||
- '@user'
|
||||
- '%tables.users%'
|
||||
tags:
|
||||
- { name: ban.type }
|
||||
|
||||
ban.type.user:
|
||||
class: \phpbb\ban\type\user
|
||||
arguments:
|
||||
- '@dbal.conn'
|
||||
- '@log'
|
||||
- '@user'
|
||||
- '%tables.users'
|
||||
tags:
|
||||
- { name: ban.type }
|
Reference in New Issue
Block a user