function Psr7RequestValueResolver::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php \Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver::__construct()
  2. 10 core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php \Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver::__construct()
  3. 11.x core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php \Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver::__construct()

Constructs a new ControllerResolver.

Parameters

\Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface $http_message_factory: The PSR-7 converter.

File

core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php, line 29

Class

Psr7RequestValueResolver
Yields a PSR7 request object based on the request object passed along.

Namespace

Drupal\Core\Controller\ArgumentResolver

Code

public function __construct(HttpMessageFactoryInterface $http_message_factory) {
    $this->httpMessageFactory = $http_message_factory;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.