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)

No description

Response
getResponse()

Returns the current response object.

setResponse(Response $response)

Sets a new response object.

Details

at line line 31
__construct(HttpKernelInterface $kernel, Request $request, int $requestType, Response $response)

Parameters

HttpKernelInterface $kernel
Request $request
int $requestType
Response $response

at line line 43
Response getResponse()

Returns the current response object.

Return Value

Response

at line line 51
setResponse(Response $response)

Sets a new response object.

Parameters

Response $response