diff --git a/src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php b/src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php index 5ed88909eba67..87d08b1784e47 100644 --- a/src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php +++ b/src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php @@ -19,17 +19,6 @@ final class HttpClientPass implements CompilerPassInterface { - private $clientTag; - - public function __construct(string $clientTag = 'http_client.client') - { - if (0 < \func_num_args()) { - trigger_deprecation('symfony/http-client', '5.3', 'Configuring "%s" is deprecated.', __CLASS__); - } - - $this->clientTag = $clientTag; - } - /** * {@inheritdoc} */ @@ -39,7 +28,7 @@ public function process(ContainerBuilder $container) return; } - foreach ($container->findTaggedServiceIds($this->clientTag) as $id => $tags) { + foreach ($container->findTaggedServiceIds('http_client.client') as $id => $tags) { $container->register('.debug.'.$id, TraceableHttpClient::class) ->setArguments([new Reference('.debug.'.$id.'.inner'), new Reference('debug.stopwatch', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]) ->setDecoratedService($id);