Skip to content

Commit 26cc224

Browse files
Lctrsnicolas-grekas
authored andcommitted
[HttpClient] CachingHttpClient must run after UriTemplate and Scoping
1 parent e29e028 commit 26cc224

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DependencyInjection/HttpClientPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function process(ContainerBuilder $container): void
2727

2828
foreach ($container->findTaggedServiceIds('http_client.client') as $id => $tags) {
2929
$container->register('.debug.'.$id, TraceableHttpClient::class)
30-
->setDecoratedService($id, null, 5)
30+
->setDecoratedService($id, null, 100)
3131
->setArguments([new Reference('.inner'), new Reference('debug.stopwatch', ContainerInterface::IGNORE_ON_INVALID_REFERENCE), new Reference('profiler.is_disabled_state_checker', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)])
3232
->addTag('kernel.reset', ['method' => 'reset']);
3333
$container->getDefinition('data_collector.http_client')

Tests/DependencyInjection/HttpClientPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testItDecoratesHttpClientWithTraceableHttpClient()
3838
$sut->process($container);
3939
$this->assertTrue($container->hasDefinition('.debug.foo'));
4040
$this->assertSame(TraceableHttpClient::class, $container->getDefinition('.debug.foo')->getClass());
41-
$this->assertSame(['foo', null, 5], $container->getDefinition('.debug.foo')->getDecoratedService());
41+
$this->assertSame(['foo', null, 100], $container->getDefinition('.debug.foo')->getDecoratedService());
4242
}
4343

4444
public function testItRegistersDebugHttpClientToCollector()

0 commit comments

Comments
 (0)