mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/9687] Add service definitions
PHPBB3-9687
This commit is contained in:
parent
7267df431f
commit
728b200cd9
3 changed files with 43 additions and 1 deletions
|
@ -2,6 +2,7 @@ imports:
|
||||||
- { resource: services_attachment.yml }
|
- { resource: services_attachment.yml }
|
||||||
- { resource: services_auth.yml }
|
- { resource: services_auth.yml }
|
||||||
- { resource: services_avatar.yml }
|
- { resource: services_avatar.yml }
|
||||||
|
- { resource: services_ban.yml }
|
||||||
- { resource: services_captcha.yml }
|
- { resource: services_captcha.yml }
|
||||||
- { resource: services_console.yml }
|
- { resource: services_console.yml }
|
||||||
- { resource: services_content.yml }
|
- { resource: services_content.yml }
|
||||||
|
|
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 }
|
|
@ -9,7 +9,7 @@ parameters:
|
||||||
tables.auth_provider_oauth_states: '%core.table_prefix%oauth_states'
|
tables.auth_provider_oauth_states: '%core.table_prefix%oauth_states'
|
||||||
tables.auth_provider_oauth_account_assoc: '%core.table_prefix%oauth_accounts'
|
tables.auth_provider_oauth_account_assoc: '%core.table_prefix%oauth_accounts'
|
||||||
tables.backups: '%core.table_prefix%backups'
|
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.bbcodes: '%core.table_prefix%bbcodes'
|
||||||
tables.bookmarks: '%core.table_prefix%bookmarks'
|
tables.bookmarks: '%core.table_prefix%bookmarks'
|
||||||
tables.bots: '%core.table_prefix%bots'
|
tables.bots: '%core.table_prefix%bots'
|
||||||
|
|
Loading…
Add table
Reference in a new issue