function ControllerResolver::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Controller/ControllerResolver.php \Drupal\Core\Controller\ControllerResolver::__construct()
- 10 core/lib/Drupal/Core/Controller/ControllerResolver.php \Drupal\Core\Controller\ControllerResolver::__construct()
- 11.x 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\ControllerCode
public function __construct(HttpMessageFactoryInterface $http_message_factory, ClassResolverInterface $class_resolver) {
$this->httpMessageFactory = $http_message_factory;
$this->classResolver = $class_resolver;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.