You are here

public function FragmentHandler::setRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Fragment/FragmentHandler.php \Symfony\Component\HttpKernel\Fragment\FragmentHandler::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/Fragment/FragmentHandler.php, line 81

Class

FragmentHandler
Renders a URI that represents a resource fragment.

Namespace

Symfony\Component\HttpKernel\Fragment

Code

public function setRequest(Request $request = null) {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
  $this->request = $request;
}