Change location of when $response->render() is called. Make memory cache storage array public.
This commit is contained in:
parent
b0fd803297
commit
e9bcbeac8f
|
@ -7,7 +7,7 @@ class Memory extends Driver {
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $storage = array();
|
public $storage = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if an item exists in the cache.
|
* Determine if an item exists in the cache.
|
||||||
|
|
|
@ -174,11 +174,25 @@ public static function prepare($response)
|
||||||
$response = new static($response);
|
$response = new static($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
$response->render();
|
|
||||||
|
|
||||||
return $response;
|
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.
|
* Convert the content of the Response to a string and return it.
|
||||||
*
|
*
|
||||||
|
@ -206,20 +220,6 @@ public function render()
|
||||||
return $this->content;
|
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.
|
* Send all of the response headers to the browser.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue