HttpCache
class HttpCache extends HttpCache
Manages HTTP cache objects in a Container.
Methods
array
getTraces()
Returns an array of events that took place during processing of the last request.
from HttpCache
Details
at line line 37
__construct(HttpKernelInterface $kernel, string $cacheDir = null)
Constructor.
in HttpCache at line line 103
StoreInterface
getStore()
Gets the current store.
in HttpCache at line line 113
array
getTraces()
Returns an array of events that took place during processing of the last request.
in HttpCache at line line 123
string
getLog()
Returns a log message for the events of the last request processing.
in HttpCache at line line 138
Request
getRequest()
Gets the Request instance associated with the master request.
in HttpCache at line line 148
HttpKernelInterface
getKernel()
Gets the Kernel instance.
in HttpCache at line line 160
SurrogateInterface
getSurrogate()
Gets the Surrogate instance.
in HttpCache at line line 172
Response
handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
Handles a Request to convert it to a Response.
When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.