Commit e9bcbeac authored by Taylor Otwell's avatar Taylor Otwell

Change location of when $response->render() is called. Make memory cache storage array public.

parent b0fd8032
......@@ -7,7 +7,7 @@ class Memory extends Driver {
*
* @var string
*/
protected $storage = array();
public $storage = array();
/**
* Determine if an item exists in the cache.
......
......@@ -174,11 +174,25 @@ class Response {
$response = new static($response);
}
$response->render();
return $response;
}
/**
* Send the headers and content of the response to the browser.
*
* @return void
*/
public function send()
{
$this->render();
$this->cookies();
$this->foundation->prepare(Request::foundation());
$this->foundation->send();
}
/**
* Convert the content of the Response to a string and return it.
*
......@@ -206,20 +220,6 @@ class Response {
return $this->content;
}
/**
* Send the headers and content of the response to the browser.
*
* @return void
*/
public function send()
{
$this->cookies();
$this->foundation->prepare(Request::foundation());
$this->foundation->send();
}
/**
* Send all of the response headers to the browser.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment