You are here

class GuzzleMiddlewarePass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/DependencyInjection/Compiler/GuzzleMiddlewarePass.php \Drupal\Core\DependencyInjection\Compiler\GuzzleMiddlewarePass

Hierarchy

Expanded class hierarchy of GuzzleMiddlewarePass

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

File

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

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. Overrides CompilerPassInterface::process