mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17153] Add basic avatar config file for installer
It doesn't actually add proper avatar functionality to the installer but provides the necessary base classes for templating. PHPBB3-17153
This commit is contained in:
parent
aac7d5a99c
commit
ad7721368c
2 changed files with 26 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
imports:
|
||||
- { resource: services_installer.yml }
|
||||
- { resource: services_avatar.yml }
|
||||
- { resource: ../../default/container/services_event.yml }
|
||||
- { resource: ../../default/container/services_filesystem.yml }
|
||||
- { resource: ../../default/container/services_http.yml }
|
||||
|
|
25
phpBB/config/installer/container/services_avatar.yml
Normal file
25
phpBB/config/installer/container/services_avatar.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
services:
|
||||
avatar.manager:
|
||||
class: phpbb\avatar\manager
|
||||
arguments:
|
||||
- '@config'
|
||||
- '@dispatcher'
|
||||
- '@avatar.driver_collection'
|
||||
|
||||
avatar.helper:
|
||||
class: phpbb\avatar\helper
|
||||
arguments:
|
||||
- '@config'
|
||||
- '@dispatcher'
|
||||
- '@language'
|
||||
- '@avatar.manager'
|
||||
- '@path_helper'
|
||||
- '@user'
|
||||
|
||||
# ----- Avatar drivers -----
|
||||
avatar.driver_collection:
|
||||
class: phpbb\di\service_collection
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: service_collection, tag: avatar.driver }
|
Loading…
Add table
Reference in a new issue