You are here

public static function ProfilerSubscriber::getSubscribedEvents in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::getSubscribedEvents()
  2. 8 webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::getSubscribedEvents()
  3. 8.2 webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::getSubscribedEvents()

File

webprofiler/src/EventSubscriber/ProfilerSubscriber.php, line 125

Class

ProfilerSubscriber

Namespace

Drupal\webprofiler\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    KernelEvents::RESPONSE => [
      'onKernelResponse',
      -100,
    ],
    KernelEvents::EXCEPTION => 'onKernelException',
    KernelEvents::FINISH_REQUEST => [
      'onKernelFinishRequest',
      -1024,
    ],
  ];
}