class ClientErrorResponseSubscriber implements EventSubscriberInterface (View source)

Response subscriber to set the '4xx-response' cache tag on 4xx responses.

Methods

onRespond(ResponseEvent $event)

Sets the '4xx-response' cache tag on 4xx responses.

static 
getSubscribedEvents()

{@inheritdoc}

Details

onRespond(ResponseEvent $event)

Sets the '4xx-response' cache tag on 4xx responses.

Parameters

ResponseEvent $event

The event to process.

static getSubscribedEvents()

{@inheritdoc}