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

[ticket/14285] Add comments

PHPBB3-14285
This commit is contained in:
Rubén Calvo
2018-07-17 12:48:27 +02:00
committed by rubencm
parent 6f69803a53
commit d105d22286
3 changed files with 90 additions and 4 deletions

View File

@@ -27,6 +27,9 @@ use Symfony\Component\HttpFoundation\Request as symfony_request;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
/**
* Controller for /download/attachment/{id} routes
*/
class attachment extends controller
{
/** @var auth */
@@ -47,7 +50,21 @@ class attachment extends controller
/** @var user */
protected $user;
public function __construct(auth $auth, service $cache, config $config, $content_visibility, driver_interface $db, dispatcher $dispatcher, request $request, storage $storage, symfony_request $symfony_request, user $user)
/**
* Constructor
*
* @param auth $auth
* @param service $cache
* @param config $config
* @param content_visibility $content_visibility
* @param driver_interface $db
* @param dispatcher_interface $dispatcher
* @param request $request
* @param storage $storage
* @param symfony_request $symfony_request
* @param user $user
*/
public function __construct(auth $auth, service $cache, config $config, content_visibility $content_visibility, driver_interface $db, dispatcher $dispatcher, request $request, storage $storage, symfony_request $symfony_request, user $user)
{
parent::__construct($cache, $db, $storage, $symfony_request);
@@ -59,6 +76,9 @@ class attachment extends controller
$this->user = $user;
}
/**
* {@inheritdoc}
*/
public function handle($id)
{
$attach_id = (int) $id;