class ControllerMatchedSubscriber implements EventSubscriberInterface (View source)

Event dispatched after a route has been matched.

Methods

__construct(Kernel $kernel, Stopwatch $stopwatch = null)

No description

static array
getSubscribedEvents()

No description

onControllerMatched(FilterControllerEvent $event)

After a controller has been matched. We need to inject current Kernel instance and main DI container.

Details

__construct(Kernel $kernel, Stopwatch $stopwatch = null)

Parameters

Kernel $kernel
Stopwatch $stopwatch

static array getSubscribedEvents()

Return Value

array

onControllerMatched(FilterControllerEvent $event)

After a controller has been matched. We need to inject current Kernel instance and main DI container.

Parameters

FilterControllerEvent $event