-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpClient] add HttplugClient for compat with libs that need httplug v1 or v2 #31976
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
Conversation
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.
Thank you
src/Symfony/Component/HttpClient/Internal/HttplugClientTrait.php
Outdated
Show resolved
Hide resolved
31dd764
to
f223518
Compare
Rebased on top of #31980, waiting for it to be merged before this one. |
bbe103b
to
27b138c
Compare
(rebased) |
…at need httplug v1 or v2 (nicolas-grekas) This PR was merged into the 4.4 branch. Discussion ---------- [HttpClient] add HttplugClient for compat with libs that need httplug v1 or v2 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Many libs still depend on httplug: https://packagist.org/packages/php-http/client-implementation/dependents Until they're all updated to PSR-18 or SFContracts, this PR provides an adapter for injecting a Symfony HttpClient into httplug-compatible classes, v1 or v2. Commits ------- 28674b1 [HttpClient] add HttplugClient for compat with libs that need httplug v1 or v2
I used this PR to merge itself, worked like a charm :) |
Is there a reason why it doesn't implement the |
No specific reasons, PR welcome as usual. |
Many libs still depend on httplug:
https://packagist.org/packages/php-http/client-implementation/dependents
Until they're all updated to PSR-18 or SFContracts, this PR provides an adapter for injecting a Symfony HttpClient into httplug-compatible classes, v1 or v2.