Skip to content
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

Deprecate HttpClientDiscovery, use Psr18ClientDiscovery instead #235

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

nicolas-grekas
Copy link
Collaborator

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Related tickets -
Documentation -
License MIT

Relates to php-http/httplug#171

['class' => Guzzle7::class, 'condition' => Guzzle7::class],
['class' => Guzzle6::class, 'condition' => Guzzle6::class],
['class' => Curl::class, 'condition' => Curl::class],
['class' => React::class, 'condition' => React::class],
],
HttpClient::class => [
['class' => SymfonyHttplug::class, 'condition' => [SymfonyHttplug::class, RequestFactory::class, [self::class, 'isPsr17FactoryInstalled']]],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is not needed, and will block when Symfony 7 will remove them from SymfonyHttplug

@hugofintecture
Copy link

Hello @nicolas-grekas! Can we use Psr18ClientDiscovery for prependStrategy(MockClientStrategy::class); ?
If yes, the example in the documentation is not up-to-date :)
https://docs.php-http.org/en/latest/discovery.html?highlight=Psr18ClientDiscovery#mock-client-discovery

@nicolas-grekas
Copy link
Collaborator Author

Please send a doc PR :)

@hugofintecture
Copy link

Sure! Was to to be sure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants