class GuzzleMiddlewarePass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DependencyInjection/Compiler/GuzzleMiddlewarePass.php \Drupal\Core\DependencyInjection\Compiler\GuzzleMiddlewarePass
Hierarchy
- class \Drupal\Core\DependencyInjection\Compiler\GuzzleMiddlewarePass implements CompilerPassInterface
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\CompilerView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GuzzleMiddlewarePass:: |
public | function |
You can modify the container here before it is dumped to PHP code. Overrides CompilerPassInterface:: |