function GuzzleMiddlewarePass::process

File

core/lib/Drupal/Core/DependencyInjection/Compiler/GuzzleMiddlewarePass.php, line 13

Class

GuzzleMiddlewarePass

Namespace

Drupal\Core\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) {
    $middleware_ids = array_keys($container->findTaggedServiceIds('http_client_middleware'));
    $container->getDefinition('http_handler_stack_configurator')
        ->addArgument($middleware_ids);
}

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