diff --git a/laravel/cache/drivers/memory.php b/laravel/cache/drivers/memory.php index 3e233348..bc469431 100644 --- a/laravel/cache/drivers/memory.php +++ b/laravel/cache/drivers/memory.php @@ -7,7 +7,7 @@ class Memory extends Driver { * * @var string */ - protected $storage = array(); + public $storage = array(); /** * Determine if an item exists in the cache. diff --git a/laravel/response.php b/laravel/response.php index a6adb5b0..f552ad67 100644 --- a/laravel/response.php +++ b/laravel/response.php @@ -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. *