Skip to content

Commit

Permalink
[HttpClient] fix missing kernel.reset tag on TraceableHttpClient serv…
Browse files Browse the repository at this point in the history
…ices
  • Loading branch information
nicolas-grekas committed Oct 6, 2021
1 parent a45fa15 commit f2b34b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/HttpClientPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function process(ContainerBuilder $container)
foreach ($container->findTaggedServiceIds($this->clientTag) as $id => $tags) {
$container->register('.debug.'.$id, TraceableHttpClient::class)
->setArguments([new Reference('.debug.'.$id.'.inner')])
->addTag('kernel.reset', ['method' => 'reset'])
->setDecoratedService($id);
$container->getDefinition('data_collector.http_client')
->addMethodCall('registerClient', [$id, new Reference('.debug.'.$id)]);
Expand Down

0 comments on commit f2b34b8

Please sign in to comment.