Symfony\Component\HttpKernel\Event\FilterResponseEvent
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.
- Author: Bernhard Schussek <bschussek@gmail.com>
Synopsis
class FilterResponseEvent
extends KernelEvent
{
- // members
- private Response $response;
- // methods
- public void __construct()
- public Response getResponse()
- public void setResponse()
- // Inherited methods from KernelEvent
- public void __construct()
- public HttpKernelInterface getKernel()
- public Request getRequest()
- public integer getRequestType()
- // Inherited methods from Event
- public Boolean isPropagationStopped()
- public void stopPropagation()
- public void setDispatcher()
- public EventDispatcherInterface getDispatcher()
- public string getName()
- public void setName()
Hierarchy
Members
private
- $response
—
Symfony\Component\HttpFoundation\Response
The current response object
Methods
public
- __construct()
- getResponse() — Returns the current response object
- setResponse() — Sets a new response object
Inherited from Symfony\Component\HttpKernel\Event\KernelEvent
public
- getKernel() — Returns the kernel in which this event was thrown
- getRequest() — Returns the request the kernel is currently processing
- getRequestType() — Returns the request type the kernel is currently processing
Inherited from Symfony\Component\EventDispatcher\Event
public
- getDispatcher() — Returns the EventDispatcher that dispatches this Event
- getName() — Gets the event's name.
- isPropagationStopped() — Returns whether further event listeners should be triggered.
- setDispatcher() — Stores the EventDispatcher that dispatches this Event
- setName() — Sets the event's name property.
- stopPropagation() — Stops the propagation of the event to further event listeners.