Skip to content

Commit

Permalink
Removing second parameter from CakeResponse, the response should not …
Browse files Browse the repository at this point in the history
…be magical
  • Loading branch information
lorenzo committed Jul 31, 2010
1 parent 159ac20 commit a2eac24
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cake/libs/cake_response.php
Expand Up @@ -304,13 +304,6 @@ class CakeResponse {
*/
protected $_encoding = 'UTF-8';

/**
* The object for the current request
*
* @var CakeRequest
*/
protected $_request = null;

/**
* Class constructor
*
Expand All @@ -319,11 +312,9 @@ class CakeResponse {
* - status: the HTTP status code to respond with
* - type: a complete mime-type string or an extension mapepd in this class
* - encoding: the encoding for the response body
* @param CakeRequest $request the object representing the current request
* @return void
*/
public function __construct(array $options = array(), CakeRequest $request = null) {
$this->_request = $request;
public function __construct(array $options = array()) {
if (isset($options['body'])) {
$this->body($options['body']);
}
Expand Down

0 comments on commit a2eac24

Please sign in to comment.