mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 03:34:04 +02:00
[ticket/14285] Move downloads to controller
PHPBB3-14285
This commit is contained in:
@@ -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'
|
||||
|
@@ -30,3 +30,6 @@ phpbb_report_routing:
|
||||
phpbb_ucp_routing:
|
||||
resource: ucp.yml
|
||||
prefix: /user
|
||||
|
||||
phpbb_storage_routing:
|
||||
resource: storage.yml
|
||||
|
9
phpBB/config/default/routing/storage.yml
Normal file
9
phpBB/config/default/routing/storage.yml
Normal 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
|
Reference in New Issue
Block a user