function Psr7RequestValueResolver::supports
Deprecated
in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.
See also
https://www.drupal.org/node/3383585
File
-
core/
lib/ Drupal/ Core/ Controller/ ArgumentResolver/ Psr7RequestValueResolver.php, line 41
Class
- Psr7RequestValueResolver
- Yields a PSR7 request object based on the request object passed along.
Namespace
Drupal\Core\Controller\ArgumentResolverCode
public function supports(Request $request, ArgumentMetadata $argument) : bool {
@trigger_error(__METHOD__ . ' is deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3383585', E_USER_DEPRECATED);
return $argument->getType() == ServerRequestInterface::class;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.