GuzzleMiddlewarePass.php in Zircon Profile 8.0
Same filename and directory in other branches
Namespace
Drupal\Core\DependencyInjection\CompilerFile
core/lib/Drupal/Core/DependencyInjection/Compiler/GuzzleMiddlewarePass.phpView source
<?php
/**
* @file
* Contains \Drupal\Core\DependencyInjection\Compiler\GuzzleMiddlewarePass.
*/
namespace Drupal\Core\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
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);
}
}
Classes
Name | Description |
---|---|
GuzzleMiddlewarePass |