public function ProfilerSubscriber::onKernelException in Devel 8.3
Same name and namespace in other branches
- 8 webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::onKernelException()
- 8.2 webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::onKernelException()
- 4.x webprofiler/src/EventSubscriber/ProfilerSubscriber.php \Drupal\webprofiler\EventSubscriber\ProfilerSubscriber::onKernelException()
Handles the onKernelException event.
File
- webprofiler/
src/ EventSubscriber/ ProfilerSubscriber.php, line 62
Class
Namespace
Drupal\webprofiler\EventSubscriberCode
public function onKernelException(GetResponseForExceptionEvent $event) {
if ($this->onlyMasterRequests && !$event
->isMasterRequest()) {
return;
}
$this->exception = $event
->getException();
}