1
0
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:
Marc Alexander
2012-11-14 23:14:41 +01:00
parent 076785d76a
commit 60b4c907b2
10 changed files with 122 additions and 53 deletions

44
phpBB/config/avatars.yml Normal file
View 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 }

View File

@@ -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: