Change location of when $response->render() is called. Make memory cache storage array public.
This commit is contained in:
2
laravel/cache/drivers/memory.php
vendored
2
laravel/cache/drivers/memory.php
vendored
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user