Метод | Описание | |
---|---|---|
__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 ( |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
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) | |
Результат | A Response instance |
public getKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | ||
Результат | Symfony\Component\HttpKernel\HttpKernelInterface | An HttpKernelInterface instance |
public getRequest ( ) : |
||
Результат | A Request instance |
public getStore ( ) : Symfony\Component\HttpKernel\HttpCache\StoreInterface | ||
Результат | Symfony\Component\HttpKernel\HttpCache\StoreInterface | $store A StoreInterface instance |
public getSurrogate ( ) : Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | ||
Результат | Symfony\Component\HttpKernel\HttpCache\SurrogateInterface | A Surrogate instance |
public handle ( |
||
$request |
protected invalidate ( |
||
$request | A Request instance | |
$catch | boolean | Whether to process exceptions |
Результат | A Response instance |
protected isFreshEnough ( |
||
$request | A Request instance | |
$entry | A Response instance | |
Результат | 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 |
Результат | A Response instance |