You are here

public function RouterListener::onKernelFinishRequest in Zircon Profile 8.0

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

File

vendor/symfony/http-kernel/EventListener/RouterListener.php, line 107

Class

RouterListener
Initializes the context from the request and sets request attributes based on a matching route.

Namespace

Symfony\Component\HttpKernel\EventListener

Code

public function onKernelFinishRequest(FinishRequestEvent $event) {
  if (null === $this->requestStack) {
    return;

    // removed when requestStack is required
  }
  $this
    ->setCurrentRequest($this->requestStack
    ->getParentRequest());
}