You are here

public static function RequestSubscriber::getSubscribedEvents in Raven: Sentry Integration 8.2

Same name and namespace in other branches
  1. 3.x 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 50

Class

RequestSubscriber
Initializes Raven logger if fatal error logging is enabled.

Namespace

Drupal\raven\EventSubscriber

Code

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