mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing second parameter from CakeResponse, the response should not be magical
This commit is contained in:
parent
159ac2038e
commit
a2eac24ec0
1 changed files with 1 additions and 10 deletions
|
@ -304,13 +304,6 @@ class CakeResponse {
|
||||||
*/
|
*/
|
||||||
protected $_encoding = 'UTF-8';
|
protected $_encoding = 'UTF-8';
|
||||||
|
|
||||||
/**
|
|
||||||
* The object for the current request
|
|
||||||
*
|
|
||||||
* @var CakeRequest
|
|
||||||
*/
|
|
||||||
protected $_request = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class constructor
|
* Class constructor
|
||||||
*
|
*
|
||||||
|
@ -319,11 +312,9 @@ class CakeResponse {
|
||||||
* - status: the HTTP status code to respond with
|
* - status: the HTTP status code to respond with
|
||||||
* - type: a complete mime-type string or an extension mapepd in this class
|
* - type: a complete mime-type string or an extension mapepd in this class
|
||||||
* - encoding: the encoding for the response body
|
* - encoding: the encoding for the response body
|
||||||
* @param CakeRequest $request the object representing the current request
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct(array $options = array(), CakeRequest $request = null) {
|
public function __construct(array $options = array()) {
|
||||||
$this->_request = $request;
|
|
||||||
if (isset($options['body'])) {
|
if (isset($options['body'])) {
|
||||||
$this->body($options['body']);
|
$this->body($options['body']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue