-
Notifications
You must be signed in to change notification settings - Fork 50
Switch from Http\Client\HttpClient to Psr\Http\Client\ClientInterface #425
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
Comments
we want to keep using the adapters to still provide the HttpAsyncClient. the Httplug HttpClient extends the PSR ClientInterface, people should depend on that rather than the deprecated HttpClient interface. if you find places where we can update the documentation or code to talk about the PSR ClientInterface, glad if you can point them out or even do a pull request to cleanup things. |
In that case - is it possible then to create a default alias for the
That's what we have now: it's possible to type hint |
oh indeed, we should do that. it would be another line right after https://github.com/php-http/HttplugBundle/blob/1.x/src/Resources/config/services.xml#L50 (and we could mark the alias for HttpClient as deprecated.) do you want to create a pull request for that? |
I totally will do tomorrow then :-) |
Description
Starting httplug v2.4.0 the
Http\Client\HttpClient
interface is deprecated in favour ofPsr\Http\Client\ClientInterface
Changelog: https://github.com/php-http/httplug/blob/625ad742c360c8ac580fcc647a1541d29e257f67/CHANGELOG.md
Example
Additional context
The text was updated successfully, but these errors were encountered: