You are here

public function ProfilerListener::onKernelException in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/EventListener/ProfilerListener.php \Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelException()

Handles the onKernelException event.

Parameters

GetResponseForExceptionEvent $event A GetResponseForExceptionEvent instance:

File

vendor/symfony/http-kernel/EventListener/ProfilerListener.php, line 73

Class

ProfilerListener
ProfilerListener collects data for the current request by listening to the kernel events.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function onKernelException(GetResponseForExceptionEvent $event) {
  if ($this->onlyMasterRequests && !$event
    ->isMasterRequest()) {
    return;
  }
  $this->exception = $event
    ->getException();
}