Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
@api
array The event names to listen to
Overrides EventSubscriberInterface::getSubscribedEvents
static function getSubscribedEvents() {
// In order to change the maintenance status an event subscriber with a
// priority between 30 and 40 should be added.
$events[KernelEvents::REQUEST][] = array(
'onKernelRequestDetermineSiteStatus',
40,
);
$events[KernelEvents::REQUEST][] = array(
'onKernelRequestMaintenance',
30,
);
return $events;
}