-
Notifications
You must be signed in to change notification settings - Fork 49
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
Check if SymfonyHttplug actually implements HttpClient #253
Conversation
@@ -158,6 +158,11 @@ public static function isGuzzleImplementingPsr18() | |||
return defined('GuzzleHttp\ClientInterface::MAJOR_VERSION'); | |||
} | |||
|
|||
public static function isSymfonyImplementingHttpClient() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static function isSymfonyImplementingHttpClient() | |
public static function isSymfonyImplementingHttplug() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HttpAsyncClient is kinda Httplug too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree with @arokettu
its not going to be relevant forever, we deprecated the synchronous php-http HttpClient interface in favor of the PSR18 http client. only the async php-http client is still relevant. when we do a new major of discovery, we will drop discovering HttpClient.
Co-authored-by: Nicolas Grekas <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot for this one.
What's in this PR?
When looking for HttpClient, check if SymfonyHttplug actually implements HttpClient.
Why?
In Symfony 7, SymfonyHttplug no longer implements HttpClient
Checklist