function HandlerStackConfigurator::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Http/HandlerStackConfigurator.php \Drupal\Core\Http\HandlerStackConfigurator::__construct()
  2. 8.9.x core/lib/Drupal/Core/Http/HandlerStackConfigurator.php \Drupal\Core\Http\HandlerStackConfigurator::__construct()
  3. 11.x 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.