HttpCache\HttpCache (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache
abstract class HttpCache extends HttpCache
Manages HTTP cache objects in a Container.
Methods
__construct(HttpKernelInterface $kernel, string $cacheDir = null) Constructor. | ||
StoreInterface | getStore() Gets the current store. | from HttpCache |
array | getTraces() Returns an array of events that took place during processing of the last request. | from HttpCache |
string | getLog() Returns a log message for the events of the last request processing. | from HttpCache |
Request | getRequest() Gets the Request instance associated with the master request. | from HttpCache |
HttpKernelInterface | getKernel() Gets the Kernel instance. | from HttpCache |
SurrogateInterface | getSurrogate() Gets the Surrogate instance. | from HttpCache |
Response | handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true) Handles a Request to convert it to a Response. | from HttpCache |
terminate(Request $request, Response $response) Terminates a request/response cycle. | from HttpCache |
Details
public __construct(HttpKernelInterface $kernel, string $cacheDir = null)
Constructor.
public StoreInterface getStore()
Gets the current store.
public array getTraces()
Returns an array of events that took place during processing of the last request.
public string getLog()
Returns a log message for the events of the last request processing.
public Request getRequest()
Gets the Request instance associated with the master request.
public HttpKernelInterface getKernel()
Gets the Kernel instance.
public SurrogateInterface getSurrogate()
Gets the Surrogate instance.
public 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.
public terminate(Request $request, Response $response)
Terminates a request/response cycle.
Should be called after sending the response and before shutting down the kernel.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.html