You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (null === $requestStack || $requestStackinstanceof Request) {
60
+
@trigger_error('Support of Symfony\Component\HttpFoundation\Request in FOS\RestBundle\Request\ParamFetcher is deprecated since version 1.7 and will be removed in 2.0. Use Symfony\Component\HttpFoundation\RequestStack instead.', E_USER_DEPRECATED);
thrownew \InvalidArgumentException(sprintf('Argument 3 of %s constructor must be either an instance of Symfony\Component\HttpFoundation\Request or Symfony\Component\HttpFoundation\RequestStack.', get_class($this)));
63
+
}
64
+
57
65
$this->paramReader = $paramReader;
58
-
$this->request = $request;
66
+
$this->requestStack = $requestStack;
59
67
$this->violationFormatter = $violationFormatter;
60
68
$this->validator = $validator;
61
69
@@ -124,9 +132,9 @@ public function get($name, $strict = null)
0 commit comments