function HandlerStackConfigurator::configure
Same name in other branches
- 9 core/lib/Drupal/Core/Http/HandlerStackConfigurator.php \Drupal\Core\Http\HandlerStackConfigurator::configure()
- 8.9.x core/lib/Drupal/Core/Http/HandlerStackConfigurator.php \Drupal\Core\Http\HandlerStackConfigurator::configure()
- 10 core/lib/Drupal/Core/Http/HandlerStackConfigurator.php \Drupal\Core\Http\HandlerStackConfigurator::configure()
Configures the stack using services tagged as http_client_middleware.
Parameters
\GuzzleHttp\HandlerStack $handler_stack: The handler stack
File
-
core/
lib/ Drupal/ Core/ Http/ HandlerStackConfigurator.php, line 82
Class
- HandlerStackConfigurator
- Defines a class for configuring middlewares on the http handler stack.
Namespace
Drupal\Core\HttpCode
public function configure(HandlerStack $handler_stack) {
$this->initializeMiddlewares();
foreach ($this->middlewares as $middleware_id => $middleware) {
$handler_stack->push($middleware, $middleware_id);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.