public function ControllerResolver::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 52
Class
- ControllerResolver
- ControllerResolver to enhance controllers beyond Symfony's basic handling.
Namespace
Drupal\Core\ControllerCode
public function __construct(HttpMessageFactoryInterface $http_message_factory, ClassResolverInterface $class_resolver) {
$this->httpMessageFactory = $http_message_factory;
$this->classResolver = $class_resolver;
}