-
Notifications
You must be signed in to change notification settings - Fork 50
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
Psr17: replace usage of deprecated PHP-HTTP Factories with PSR-17 factories #439
Conversation
Considering that the guzzle5-adapter is basically abandoned, I would suggest removing support for it here too. |
f14f589
to
3ecdcb2
Compare
thanks a lot for this work! i agree we should do this, and do BC breaks. and i also agree with dropping guzzle 5 support. we could even also drop guzzle 6 i think and very old php versions. because of the major BC breaks, this seems the moment to bump the bundle to version 2. i just created the 2.x branch - can you please rebase and then add to the changelog the necessary informations of what changed / what users need to adjust in their configuration? do you see other cleanups or changes that we should do before tagging 2.x? it would be the opportunity to get rid of legacy things and make necesary BC breaks. |
… with PSR-17 factories
Rebased the PR onto 2.x and added changelog entries. I see you already have a PR for marking classes as final and resolving some more deprecations. The other big deprecation I saw is the Optional changes should probably be based on how much easier it will make your life as a maintainer:
|
awesome, thanks a lot! i merged, as this is a nice package of changes. if you are motivated to do it, i think raising to PHP 8 would be really neat so we can modernize the code as well. dropping support for legacy symfony versions would also be good - there is some ugly stuff in src/Collector/PluginClientFactoryListener.php for example to support legacy versions. |
What's in this PR?
Replaces usage of PHP-HTTP factories with PSR-17 factories
Why?
PHP-HTTP factories are deprecated
Checklist
To Do
php-http/message-factory
from composer.jsonQuestions