Property | Type | Description | |
---|---|---|---|
$esi | |||
$kernel | |||
$request | |||
$store | |||
$traces |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Symfony\Component\HttpKernel\Cache\Store $store, Symfony\Component\HttpKernel\Cache\Esi $esi = null, array $options = [] ) | Constructor. | |
getLog ( ) : string | Returns a log message for the events of the last request processing. | |
getRequest ( ) : |
Gets the Request instance associated with the master request. | |
getTraces ( ) : array | Returns an array of events that took place during processing of the last request. | |
handle ( |
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. | |
isPrivateRequest ( |
Checks if the Request includes authorization or other sensitive information that should cause the Response to be considered private by default. | |
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 ( |
||
record ( |
Records that an event took place. | |
restoreResponseBody ( |
Restores the Response body. | |
store ( |
Writes the Response to the cache. | |
validate ( |
Validates that a cache entry is fresh. |
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Symfony\Component\HttpKernel\Cache\Store $store, Symfony\Component\HttpKernel\Cache\Esi $esi = null, array $options = [] ) | ||
$kernel | Symfony\Component\HttpKernel\HttpKernelInterface | An HttpKernelInterface instance |
$store | Symfony\Component\HttpKernel\Cache\Store | A Store instance |
$esi | Symfony\Component\HttpKernel\Cache\Esi | An Esi instance |
$options | array | An array of options |
protected fetch ( |
||
$request | A Request instance | |
return | A Response instance |
protected forward ( |
||
$request | A Request instance | |
$catch | boolean | Whether to catch exceptions or not |
$entry | ||
return | A Response instance |
public getRequest ( ) : |
||
return | A Request instance |
public handle ( |
||
$request |
protected invalidate ( |
||
$request | A Request instance | |
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 isPrivateRequest ( |
||
$request | A Request instance | |
return | boolean | true if the Request is private, false otherwise |
protected lookup ( |
||
$request | A Request instance | |
return | A Response instance |
protected pass ( |
||
$request | A Request instance | |
return | A Response instance |
protected processResponseBody ( |
||
$request | ||
$response |
protected restoreResponseBody ( |
||
$response | A Response instance | |
return | A Response instance |
protected store ( |
||
$request | A Request instance | |
$response | A Response instance |
protected validate ( |
||
$request | A Request instance | |
$entry | A Response instance to validate | |
return | A Response instance |