You are here

public function ControllerResolver::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/Controller/ControllerResolver.php \Symfony\Component\HttpKernel\Controller\ControllerResolver::__construct()
  2. 8 core/lib/Drupal/Core/Controller/ControllerResolver.php \Drupal\Core\Controller\ControllerResolver::__construct()
Same name and namespace in other branches
  1. 8.0 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.

Overrides ControllerResolver::__construct

File

core/lib/Drupal/Core/Controller/ControllerResolver.php, line 58
Contains \Drupal\Core\Controller\ControllerResolver.

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;
}