mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/14285] Remove streamed_response
PHPBB3-14285
This commit is contained in:
parent
b2cea59c3e
commit
5c2a8bbfdf
2 changed files with 3 additions and 34 deletions
|
@ -17,8 +17,8 @@ use phpbb\cache\service;
|
||||||
use phpbb\db\driver\driver_interface;
|
use phpbb\db\driver\driver_interface;
|
||||||
use phpbb\exception\http_exception;
|
use phpbb\exception\http_exception;
|
||||||
use phpbb\storage\storage;
|
use phpbb\storage\storage;
|
||||||
use phpbb\storage\streamed_response;
|
|
||||||
use Symfony\Component\HttpFoundation\Request as symfony_request;
|
use Symfony\Component\HttpFoundation\Request as symfony_request;
|
||||||
|
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic controller for storage
|
* Generic controller for storage
|
||||||
|
@ -34,7 +34,7 @@ class controller
|
||||||
/** @var storage */
|
/** @var storage */
|
||||||
protected $storage;
|
protected $storage;
|
||||||
|
|
||||||
/** @var streamed_response */
|
/** @var StreamedResponse */
|
||||||
protected $response;
|
protected $response;
|
||||||
|
|
||||||
/** @var symfony_request */
|
/** @var symfony_request */
|
||||||
|
@ -54,7 +54,7 @@ class controller
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->storage = $storage;
|
$this->storage = $storage;
|
||||||
$this->symfony_request = $symfony_request;
|
$this->symfony_request = $symfony_request;
|
||||||
$this->response = new streamed_response();
|
$this->response = new StreamedResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
<?php
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* This file is part of the phpBB Forum Software package.
|
|
||||||
*
|
|
||||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
||||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
||||||
*
|
|
||||||
* For full copyright and license information, please see
|
|
||||||
* the docs/CREDITS.txt file.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace phpbb\storage;
|
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
|
||||||
|
|
||||||
// Temporal fix for: https://github.com/symfony/symfony/issues/27924
|
|
||||||
// Fixed 23/7/2018 in symfony v3.4.13
|
|
||||||
class streamed_response extends StreamedResponse
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function setNotModified()
|
|
||||||
{
|
|
||||||
$this->setCallback(function () {});
|
|
||||||
|
|
||||||
return parent::setNotModified();
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue