3 namespace Drupal\Core\DependencyInjection\Compiler;
5 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
6 use Symfony\Component\DependencyInjection\ContainerBuilder;
8 class GuzzleMiddlewarePass implements CompilerPassInterface {
13 public function process(ContainerBuilder $container) {
14 $middleware_ids = array_keys($container->findTaggedServiceIds('http_client_middleware'));
15 $container->getDefinition('http_handler_stack_configurator')
16 ->addArgument($middleware_ids);