class EnforcedFormResponseSubscriber implements EventSubscriberInterface (View source)

Handle the EnforcedResponseException and deliver an EnforcedResponse.

Methods

onKernelException(GetResponseForExceptionEvent $event)

Replaces the response in case an EnforcedResponseException was thrown.

onKernelResponse(FilterResponseEvent $event)

Unwraps an enforced response.

static 
getSubscribedEvents()

{@inheritdoc}

Details

onKernelException(GetResponseForExceptionEvent $event)

Replaces the response in case an EnforcedResponseException was thrown.

Parameters

GetResponseForExceptionEvent $event

onKernelResponse(FilterResponseEvent $event)

Unwraps an enforced response.

Parameters

FilterResponseEvent $event

static getSubscribedEvents()

{@inheritdoc}