private function RouterListener::setCurrentRequest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/EventListener/RouterListener.php \Symfony\Component\HttpKernel\EventListener\RouterListener::setCurrentRequest()
3 calls to RouterListener::setCurrentRequest()
- RouterListener::onKernelFinishRequest in vendor/
symfony/ http-kernel/ EventListener/ RouterListener.php - RouterListener::onKernelRequest in vendor/
symfony/ http-kernel/ EventListener/ RouterListener.php - RouterListener::setRequest in vendor/
symfony/ http-kernel/ EventListener/ RouterListener.php - Sets the current Request.
File
- vendor/
symfony/ http-kernel/ EventListener/ RouterListener.php, line 98
Class
- RouterListener
- Initializes the context from the request and sets request attributes based on a matching route.
Namespace
Symfony\Component\HttpKernel\EventListenerCode
private function setCurrentRequest(Request $request = null) {
if (null !== $request && $this->request !== $request) {
$this->context
->fromRequest($request);
}
$this->request = $request;
}