-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow developer to choose psr http implementation #2652
Comments
Hi @kaznovac, With a bit of custom code, this should work for you if you're only looking to have control over the client. If you're looking to decouple from guzzle all together, then this would need a major version bump to change it. Is setting |
Thank you for the quick answer @SamRamis :) I'll investigate the suggestion. In the future, I believe, it would be beneficial to the library to decouple it from the concrete http client. |
It would be great if this package in a future version depends on php-http/discovery instead of guzzlehttp/guzzle and guzzlehttp/psr7. (More on this package on https://docs.php-http.org/en/latest/discovery.html) This would require updating the minimum PHP version to 7.1, but with a user base of less than 1% of composer users on older PHP versions, that should not be a problem. |
Hi all, Just wanted to let you know that we'll be closing this for now. There are no plans for work on this in V3 of the SDK, but when/if we get the green light to work on a V4, we will be very much in favor of going with an agnostic approach with regard to HTTP clients. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the feature
currently sdk forces the guzzle as psr7 implementation, it would be benefitial to allow other implementations (like symfony/http-client, ...)
Use Case
I'd like to use the client already in the app without importing and configuring another
Proposed Solution
No response
Other Information
No response
Acknowledgements
SDK version used
3.261.2
Environment details (Version of PHP (
php -v
)? OS name and version, etc.)N/A
The text was updated successfully, but these errors were encountered: