1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/15276] Use storage in avatars

PHPBB3-15276
This commit is contained in:
Rubén Calvo
2017-07-19 09:10:33 +02:00
parent d8fb94245f
commit 4ed0de9f41
9 changed files with 408 additions and 38 deletions

View File

@@ -61,7 +61,7 @@ services:
- '@config'
- '%core.root_path%'
- '%core.php_ext%'
- '@filesystem'
- '@storage.avatar'
- '@path_helper'
- '@dispatcher'
- '@files.factory'

View File

@@ -12,7 +12,6 @@ services:
- '@language'
- '@php_ini'
- '@upload_imagesize'
- '%core.root_path%'
- '@mimetype.guesser'
- '@plupload'

View File

@@ -1,9 +1,18 @@
services:
# Storages
storage.avatar:
class: phpbb\storage\storage
arguments:
- '@storage.adapter.factory'
- 'avatar'
# Factory
storage.adapter.factory:
class: phpbb\storage\adapter_factory
arguments:
- '@config'
- '@service_container'
- '@storage.adapter_collection'
- '@storage.provider_collection'