Class

Symfony\Component\HttpKernel\EventListener\ResponseListener

class ResponseListener implements EventSubscriberInterface

ResponseListener fixes the Response headers based on the Request.

Methods

__construct($charset)

onKernelResponse(FilterResponseEvent $event)

Filters the Response.

static array getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

Details

at line 27
public __construct($charset)

Parameters

$charset

at line 37
public onKernelResponse(FilterResponseEvent $event)

Filters the Response.

Parameters

FilterResponseEvent $event A FilterResponseEvent instance

at line 52
static public array getSubscribedEvents()

Returns an array of event names this subscriber wants to listen to.

The array keys are event names and the value can be:

For instance:

Return Value

array The event names to listen to