1
0
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:
Oliver Schramm
2018-09-30 03:50:49 +02:00
committed by Marc Alexander
parent 7267df431f
commit 728b200cd9
3 changed files with 43 additions and 1 deletions

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