You are here

public function ControllerResolver::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Controller/ControllerResolver.php \Drupal\Core\Controller\ControllerResolver::__construct()

Constructs a new ControllerResolver.

Parameters

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

\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.

File

core/lib/Drupal/Core/Controller/ControllerResolver.php, line 49

Class

ControllerResolver
ControllerResolver to enhance controllers beyond Symfony's basic handling.

Namespace

Drupal\Core\Controller

Code

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