class EnforcedFormResponseSubscriber implements EventSubscriberInterface (View source)

Handle the EnforcedResponseException and deliver an EnforcedResponse.

Methods

onKernelException(ExceptionEvent $event)

Replaces the response in case an EnforcedResponseException was thrown.

onKernelResponse(ResponseEvent $event)

Unwraps an enforced response.

static 
getSubscribedEvents()

{@inheritdoc}

Details

onKernelException(ExceptionEvent $event)

Replaces the response in case an EnforcedResponseException was thrown.

Parameters

ExceptionEvent $event

onKernelResponse(ResponseEvent $event)

Unwraps an enforced response.

Parameters

ResponseEvent $event

static getSubscribedEvents()

{@inheritdoc}