-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[PHP] 6.0.x make php implementation depend on meta packages for http client #9772
[PHP] 6.0.x make php implementation depend on meta packages for http client #9772
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.
This looks great, thanks for working on this! <3
Some questions I'd like to discuss:
modules/openapi-generator/src/main/resources/php/ApiException.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/php/composer.mustache
Outdated
Show resolved
Hide resolved
Added missing composer requirements Calling parse_url once
Update from 2021-07-05 redirect problem was solved by upgrading php-http/client-common, PHP Unit tests are passing now Some tests are failing and I figured out the reason, I don't have a solution for it yet.
The redirect plugin from here https://github.com/php-http/plugins/blob/master/src/RedirectPlugin.php#L197 I read a bit about that and to me it looks that probably RedirectPlugin should not change POST to GET, but that is a common implementation bug https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3
As well seen at
I am not sure on how to solve that issue yet, I will get back to the PR after one week |
… for tests to pass Previously POST requests were redirected as GET requests and that was causing tests to fail
Could you take a look again? The issue with redirect was fixed by using an updated I have seen that build was failing but could not really understand what exactly was wrong |
@wing328 is the issue with Petstore tests fixed? I remember it's quite flaky. |
Hi! Does this issue have some forecasts for release? |
it would be great to have this merged, let us know if help is needed |
@olexiyk can you please resolve the merge conflicts when you've time? |
UPDATE: I've filed #16368 to add the implementation via the library option (e.g. --library psr-18 via CLI) |
Included #16368 in v7.0.0 release. |
Instead of relying on Guzzle directly, depend on a psr/http-client-implementation (AKA PSR 18). This is a metapackage which implementations can declare they provide, all the major ones already do (including Guzzle, Symfony, etc).
Inspired by discussion: #7518
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
,5.1.x
,6.0.x
@jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), @ackintosh (2017/09) ❤️, @ybelenko (2018/07), @renepardon (2018/12)