You are here

public static function SecKitEventSubscriber::getSubscribedEvents in Security Kit 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/SecKitEventSubscriber.php \Drupal\seckit\EventSubscriber\SecKitEventSubscriber::getSubscribedEvents()

File

src/EventSubscriber/SecKitEventSubscriber.php, line 375

Class

SecKitEventSubscriber
Subscribing an event.

Namespace

Drupal\seckit\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'onKernelRequest',
    100,
  ];
  $events[KernelEvents::RESPONSE][] = [
    'onKernelResponse',
  ];
  return $events;
}