Skip to content

Commit 1e3f943

Browse files
adpeyreAdrien Peyre
authored andcommitted
TraceableHttpClient: increase decorator's priority
1 parent c52b0ed commit 1e3f943

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/HttpClient/DependencyInjection/HttpClientPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function process(ContainerBuilder $container)
3838
$container->register('.debug.'.$id, TraceableHttpClient::class)
3939
->setArguments([new Reference('.debug.'.$id.'.inner')])
4040
->addTag('kernel.reset', ['method' => 'reset'])
41-
->setDecoratedService($id);
41+
->setDecoratedService($id, null, 100);
4242
$container->getDefinition('data_collector.http_client')
4343
->addMethodCall('registerClient', [$id, new Reference('.debug.'.$id)]);
4444
}

src/Symfony/Component/HttpClient/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, 0], $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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy