Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] Fix typo in deprecation message #58625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Oct 22, 2024

Q A
Branch? 7.1
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #...
License MIT

Just a typo fix from #54806

This confused me initially because I thought I had to configure it on a wrapper, so add one more layer, but couldn't find a logging wrapper client..

Anyway @xabbuh one more question do I understand it correctly that if one just uses autowiring and the framework.http_client config to create a client, then the loggers will be set by default and nothing has to be done? No need to call setLogger explicitly on the client right?

@xabbuh
Copy link
Member

xabbuh commented Oct 22, 2024

Anyway @xabbuh one more question do I understand it correctly that if one just uses autowiring and the framework.http_client config to create a client, then the loggers will be set by default and nothing has to be done? No need to call setLogger explicitly on the client right?

I didn't check with a real application but as I read the code it should indeed work like this as long as you don't replace Symfony's http_client.transport service with a custom implementation.

@carsonbot carsonbot changed the title Fix typo in deprecation message [HttpClient] Fix typo in deprecation message Oct 22, 2024
@nicolas-grekas
Copy link
Member

Thank you @Seldaek.

@nicolas-grekas nicolas-grekas merged commit 8a2c97b into symfony:7.1 Oct 22, 2024
10 checks passed
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.

4 participants