mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 03:04:09 +02:00
[feature/avatars] Add service containers for avatars
PHPBB3-10018
This commit is contained in:
44
phpBB/config/avatars.yml
Normal file
44
phpBB/config/avatars.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
services:
|
||||
avatar.driver.core.gravatar:
|
||||
class: phpbb_avatar_driver_core_gravatar
|
||||
arguments:
|
||||
- @config
|
||||
- @request
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @cache.driver
|
||||
tags:
|
||||
- { name: avatar.driver }
|
||||
|
||||
avatar.driver.core.local:
|
||||
class: phpbb_avatar_driver_core_local
|
||||
arguments:
|
||||
- @config
|
||||
- @request
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @cache.driver
|
||||
tags:
|
||||
- { name: avatar.driver }
|
||||
|
||||
avatar.driver.core.remote:
|
||||
class: phpbb_avatar_driver_core_remote
|
||||
arguments:
|
||||
- @config
|
||||
- @request
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @cache.driver
|
||||
tags:
|
||||
- { name: avatar.driver }
|
||||
|
||||
avatar.driver.core.upload:
|
||||
class: phpbb_avatar_driver_core_upload
|
||||
arguments:
|
||||
- @config
|
||||
- @request
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @cache.driver
|
||||
tags:
|
||||
- { name: avatar.driver }
|
@@ -1,11 +1,30 @@
|
||||
imports:
|
||||
- { resource: tables.yml }
|
||||
- { resource: cron_tasks.yml }
|
||||
- { resource: avatars.yml }
|
||||
|
||||
services:
|
||||
auth:
|
||||
class: phpbb_auth
|
||||
|
||||
avatar.driver_collection:
|
||||
class: phpbb_di_service_collection
|
||||
arguments:
|
||||
- @service_container
|
||||
tags:
|
||||
- { name: service_collection, tag: avatar.driver }
|
||||
|
||||
avatar.manager:
|
||||
class: phpbb_avatar_manager
|
||||
arguments:
|
||||
- %core.root_path%
|
||||
- .%core.php_ext%
|
||||
- @config
|
||||
- @request
|
||||
- @cache.driver
|
||||
- @avatar.driver_collection
|
||||
- @service_container
|
||||
|
||||
cache:
|
||||
class: phpbb_cache_service
|
||||
arguments:
|
||||
|
Reference in New Issue
Block a user