1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 11:44:08 +02:00

[ticket/14285] Move downloads to controller

PHPBB3-14285
This commit is contained in:
Rubén Calvo
2018-06-29 18:00:11 +02:00
committed by rubencm
parent e159bef055
commit dd06933324
8 changed files with 479 additions and 367 deletions

View File

@@ -82,3 +82,22 @@ services:
arguments:
tags:
- { name: storage.provider }
# Controllers
storage.controller.avatar:
class: phpbb\storage\controller\avatar
arguments:
- '@config'
- '@storage.avatar'
storage.controller.attachment:
class: phpbb\storage\controller\attachment
arguments:
- '@auth'
- '@cache'
- '@config'
- '@dbal.conn'
- '@dispatcher'
- '@request'
- '@storage.attachment'
- '@user'

View File

@@ -30,3 +30,6 @@ phpbb_report_routing:
phpbb_ucp_routing:
resource: ucp.yml
prefix: /user
phpbb_storage_routing:
resource: storage.yml

View File

@@ -0,0 +1,9 @@
phpbb_storage_avatar:
path: /download/avatar/{file}
defaults:
_controller: storage.controller.avatar:handle
phpbb_storage_attachment:
path: /download/attachment/{file}
defaults:
_controller: storage.controller.attachment:handle