class GuzzleMiddlewarePass

Hierarchy

  • class \Drupal\Core\DependencyInjection\Compiler\GuzzleMiddlewarePass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of GuzzleMiddlewarePass

1 file declares its use of GuzzleMiddlewarePass
CoreServiceProvider.php in core/lib/Drupal/Core/CoreServiceProvider.php

File

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

Namespace

Drupal\Core\DependencyInjection\Compiler
View source
class GuzzleMiddlewarePass implements CompilerPassInterface {
    
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container) {
        $middleware_ids = array_keys($container->findTaggedServiceIds('http_client_middleware'));
        $container->getDefinition('http_handler_stack_configurator')
            ->addArgument($middleware_ids);
    }

}

Members

Title Sort descending Modifiers Object type Summary
GuzzleMiddlewarePass::process public function

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