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

Skip to content

Cannot get rid of "Configure the logger on the wrapped HTTP client directly instead." #58759

Closed
@Seldaek

Description

@Seldaek

Symfony version(s) affected

7.1

Description

Since the 7.1 upgrade, we get this deprecation (coming from #54806), it seems like the autowiring just detects LoggerAwareInterface and maps setLogger() to be called on NoPrivateNetworkHttpClient & co, but this means we cannot get rid of the deprecation except if we redefine all http_client services ourselves to avoid autowiring.

How to reproduce

Just request a NoPrivateNetworkHttpClient instance in an autowired service.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions