Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

As advised by @stof in #62169 (comment)

if ($responseFactoryId = $config['mock_response_factory'] ?? null) {
$container->register('http_client.mock_client', MockHttpClient::class)
->setDecoratedService('http_client.transport', null, -10) // lower priority than TraceableHttpClient (5)
->setDecoratedService('http_client.transport', null, -10) // lower priority than ScopingHttpClient (0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this does not decorate the named client, this new comment does not make sense.

@alexandre-daubois
Copy link
Member

Thank you @nicolas-grekas.

@alexandre-daubois alexandre-daubois merged commit 18e39b5 into symfony:7.4 Oct 29, 2025
10 of 12 checks passed
@nicolas-grekas nicolas-grekas deleted the fwb-hc-stack branch October 30, 2025 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants