You are here

static function XHProfEventSubscriber::getSubscribedEvents in XHProf 8

File

src/EventSubscriber/XHProfEventSubscriber.php, line 66

Class

XHProfEventSubscriber
Provides handling of start/stop for profiler.

Namespace

Drupal\xhprof\EventSubscriber

Code

static function getSubscribedEvents() {
  return [
    KernelEvents::REQUEST => [
      'onKernelRequest',
      0,
    ],
    KernelEvents::RESPONSE => [
      'onKernelResponse',
      0,
    ],
    KernelEvents::TERMINATE => [
      'onKernelTerminate',
      0,
    ],
  ];
}