[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:
Marc Alexander 2023-07-01 19:32:38 +02:00
parent aac7d5a99c
commit ad7721368c
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 26 additions and 0 deletions

View file

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

View 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 }