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|null $requestType, Response $response)
No description
getResponse()
Returns the current response object.
Details
stopPropagation()
Stops the propagation of the event to further event listeners.
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().