1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-05 05:55:15 +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
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
3 changed files with 43 additions and 1 deletions

View File

@ -2,6 +2,7 @@ imports:
- { resource: services_attachment.yml }
- { resource: services_auth.yml }
- { resource: services_avatar.yml }
- { resource: services_ban.yml }
- { resource: services_captcha.yml }
- { resource: services_console.yml }
- { resource: services_content.yml }

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 }

View File

@ -9,7 +9,7 @@ parameters:
tables.auth_provider_oauth_states: '%core.table_prefix%oauth_states'
tables.auth_provider_oauth_account_assoc: '%core.table_prefix%oauth_accounts'
tables.backups: '%core.table_prefix%backups'
tables.banlist: '%core.table_prefix%banlist'
tables.bans: '%core.table_prefix%bans'
tables.bbcodes: '%core.table_prefix%bbcodes'
tables.bookmarks: '%core.table_prefix%bookmarks'
tables.bots: '%core.table_prefix%bots'