FilterResponseEvent
class FilterResponseEvent extends KernelEvent
Allows to filter a Response object.
You can call getResponse() to retrieve the current response. With setResponse() you can set a new response that will be returned to the browser.
Methods
__construct(HttpKernelInterface $kernel, Request $request, int $requestType, Response $response) | ||
Response | getResponse() Returns the current response object. | |
setResponse(Response $response) Sets a new response object. |
Details
__construct(HttpKernelInterface $kernel, Request $request, int $requestType, Response $response)
Parameters
HttpKernelInterface | $kernel | |
Request | $request | |
int | $requestType | |
Response | $response |
Response getResponse()
Returns the current response object.
Return Value
Response |
setResponse(Response $response)
Sets a new response object.
Parameters
Response | $response |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/HttpKernel/Event/FilterResponseEvent.html