GuzzleMiddlewarePass::process

public GuzzleMiddlewarePass::process(ContainerBuilder $container)

You can modify the container here before it is dumped to PHP code.

Parameters

ContainerBuilder $container:

Overrides CompilerPassInterface::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);
}
doc_Drupal
2016-10-29 09:17:31
Comments
Leave a Comment

Please login to continue.