You are here

public static function RequestSubscriber::getSubscribedEvents in Raven: Sentry Integration 3.x

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/RequestSubscriber.php \Drupal\raven\EventSubscriber\RequestSubscriber::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

File

src/EventSubscriber/RequestSubscriber.php, line 172

Class

RequestSubscriber
Initializes Raven logger so Sentry functions can be called.

Namespace

Drupal\raven\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'onRequest',
    222,
  ];
  $events[KernelEvents::TERMINATE][] = [
    'onTerminate',
    222,
  ];
  return $events;
}