Removing second parameter from CakeResponse, the response should not be magical

This commit is contained in:
José Lorenzo Rodríguez 2010-07-31 13:10:37 -04:30
parent 159ac2038e
commit a2eac24ec0

View file

@ -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']);
} }