Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Symfony\Component\HttpKernel\HttpCache\StoreInterface $store, Symfony\Component\HttpKernel\HttpCache\SurrogateInterface $surrogate = null, array $options = [] ) | Constructor. | |
getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | Gets the Kernel instance. | |
getLog ( ) : string | Returns a log message for the events of the last request processing. | |
getRequest ( ) : |
Gets the Request instance associated with the master request. | |
getStore ( ) : Symfony\Component\HttpKernel\HttpCache\StoreInterface | Gets the current store. | |
getSurrogate ( ) : Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | Gets the Surrogate instance. | |
getTraces ( ) : array | Returns an array of events that took place during processing of the last request. | |
handle ( |
||
terminate ( |
Method | Description | |
---|---|---|
fetch ( |
Forwards the Request to the backend and determines whether the response should be stored. | |
forward ( |
Forwards the Request to the backend and returns the Response. | |
invalidate ( |
Invalidates non-safe methods (like POST, PUT, and DELETE). | |
isFreshEnough ( |
Checks whether the cache entry is "fresh enough" to satisfy the Request. | |
lock ( |
Locks a Request during the call to the backend. | |
lookup ( |
Lookups a Response from the cache for the given Request. | |
pass ( |
Forwards the Request to the backend without storing the Response in the cache. | |
processResponseBody ( |
||
store ( |
Writes the Response to the cache. | |
validate ( |
Validates that a cache entry is fresh. |
Method | Description | |
---|---|---|
isPrivateRequest ( |
Checks if the Request includes authorization or other sensitive information that should cause the Response to be considered private by default. | |
record ( |
Records that an event took place. | |
restoreResponseBody ( |
Restores the Response body. |
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Symfony\Component\HttpKernel\HttpCache\StoreInterface $store, Symfony\Component\HttpKernel\HttpCache\SurrogateInterface $surrogate = null, array $options = [] ) | ||
$kernel | Symfony\Component\HttpKernel\HttpKernelInterface | An HttpKernelInterface instance |
$store | Symfony\Component\HttpKernel\HttpCache\StoreInterface | A Store instance |
$surrogate | Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | A SurrogateInterface instance |
$options | array | An array of options |
protected forward ( |
||
$request | A Request instance | |
$catch | boolean | Whether to catch exceptions or not |
$entry | A Response instance (the stale entry if present, null otherwise) | |
return | A Response instance |
public getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | ||
return | Symfony\Component\HttpKernel\HttpKernelInterface | An HttpKernelInterface instance |
public getRequest ( ) : |
||
return | A Request instance |
public getStore ( ) : Symfony\Component\HttpKernel\HttpCache\StoreInterface | ||
return | Symfony\Component\HttpKernel\HttpCache\StoreInterface | $store A StoreInterface instance |
public getSurrogate ( ) : Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | ||
return | Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | A Surrogate instance |
public handle ( |
||
$request |
protected invalidate ( |
||
$request | A Request instance | |
$catch | boolean | Whether to process exceptions |
return | A Response instance |
protected isFreshEnough ( |
||
$request | A Request instance | |
$entry | A Response instance | |
return | boolean | true if the cache entry if fresh enough, false otherwise |
protected processResponseBody ( |
||
$request | ||
$response |
protected store ( |
||
$request | A Request instance | |
$response | A Response instance |
public terminate ( |
||
$request | ||
$response |
protected validate ( |
||
$request | A Request instance | |
$entry | A Response instance to validate | |
$catch | boolean | Whether to process exceptions |
return | A Response instance |