You are here

class GuzzleMiddlewarePass in Drupal 8

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

Namesort descending Modifiers Type Description Overrides
GuzzleMiddlewarePass::process public function You can modify the container here before it is dumped to PHP code.