You are here

public function ProfilerListener::onKernelRequest 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::onKernelRequest()

Deprecated

since version 2.4, to be removed in 3.0.

File

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

Class

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

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function onKernelRequest(GetResponseEvent $event) {
  if (null === $this->requestStack) {
    $this->requests[] = $event
      ->getRequest();
  }
}