You are here

public function HandlerStackConfigurator::__construct in Drupal 9

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

Constructs a new HandlerStackConfigurator object.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The service container.

string[] $middleware_ids: The middleware IDs.

File

core/lib/Drupal/Core/Http/HandlerStackConfigurator.php, line 53

Class

HandlerStackConfigurator
Defines a class for configuring middlewares on the http handler stack.

Namespace

Drupal\Core\Http

Code

public function __construct(ContainerInterface $container, array $middleware_ids) {
  $this->middlewareIds = $middleware_ids;
  $this->container = $container;
}