public function RouterListener::setRequest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/EventListener/RouterListener.php \Symfony\Component\HttpKernel\EventListener\RouterListener::setRequest()
Sets the current Request.
This method was used to synchronize the Request, but as the HttpKernel is doing that automatically now, you should never call it directly. It is kept public for BC with the 2.3 version.
Parameters
Request|null $request A Request instance:
Deprecated
since version 2.4, to be removed in 3.0.
File
- vendor/
symfony/ http-kernel/ EventListener/ RouterListener.php, line 91
Class
- RouterListener
- Initializes the context from the request and sets request attributes based on a matching route.
Namespace
Symfony\Component\HttpKernel\EventListenerCode
public function setRequest(Request $request = null) {
@trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be made private in 3.0.', E_USER_DEPRECATED);
$this
->setCurrentRequest($request);
}