class PreviewModeSubscriber implements EventSubscriberInterface (View source)

Class PreviewModeSubscriber

Properties

protected $container

Methods

__construct(Container $container)

PreviewModeSubscriber constructor.

static array
getSubscribedEvents()

No description

onControllerMatched(FilterControllerEvent $event)

No description

onResponse(FilterResponseEvent $event)

Enforce cache disabling.

Details

__construct(Container $container)

PreviewModeSubscriber constructor.

Parameters

Container $container

static array getSubscribedEvents()

Return Value

array

onControllerMatched(FilterControllerEvent $event)

Parameters

FilterControllerEvent $event

Exceptions

PreviewNotAllowedException

onResponse(FilterResponseEvent $event)

Enforce cache disabling.

Parameters

FilterResponseEvent $event