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

This commit is contained in:
Taylor Otwell 2012-04-27 13:30:03 -05:00
parent b0fd803297
commit e9bcbeac8f
2 changed files with 17 additions and 17 deletions

View File

@ -7,7 +7,7 @@ class Memory extends Driver {
*
* @var string
*/
protected $storage = array();
public $storage = array();
/**
* Determine if an item exists in the cache.

View File

@ -174,11 +174,25 @@ public static function prepare($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 @@ public function render()
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.
*