-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
[php-symfony] Symfony6 support #11339
Conversation
@sensorario thanks for the PR. Is it correct to say that this is a breaking change? If that's case, should this PR target 6.0.x branch (breaking changes without fallback)? |
@wing328 yes. May I rebase into 6.0.x, ... |
bf68e9b
to
356e8c4
Compare
@wing328 I think something went wrong. I checked out branch 6.0.x. I moved all my changes here. Recreated symfony6-support branch from here and then followed the steps
But now I see all samples generated. |
For this PR is goot just php-symfony or may I add all other updated examples? |
9491c46
to
96e6405
Compare
Cool, finally someone ready to share modern Symfony build. Let me review, I want to test it locally before merge. Thanks @sensorario |
Hmm, Symfony 6 requires |
Sounds good to me. |
I guess something is not clear for me. I checked out 6.0.x to, started new branch from here. [...] Then, ... the command
must works in 6.0.x branch? |
@sensorario I've changed the PR target branch to "master" (which is the upcoming v6.0.0 release). Can you please resolve the merge conflicts when you've time? |
"jms/serializer-bundle": "^2.0", | ||
"symfony/framework-bundle": "^4.4.8" | ||
"symfony/validator": "6.0.*", | ||
"jms/serializer-bundle": "6.0.*", |
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.
Latest available version is 4.0.2
https://packagist.org/packages/jms/serializer-bundle
When requiring the package created using this PR with composer, the following error is returned:
I think the return value of getAlias must be string. Additionally the version of |
Additionally, I think some work needs to be done for compatibility with the new JMS/Serializer version. |
Well, I thought this PR contains significant changes(when I noticed updated files list 😅), but it's just bump of the Symfony and PHP number. I'm afraid that we have to start Symfony 6 generator from scratch. I'm not even sure that current codegen builds and works. @sensorario did you compare generator output with basic Symfony 6 skeleton(fresh installation)? I think they completely different. |
@sensorario thanks for the effort. I'm closing PR without merge in favour of #11810 let's focus in the one thread. |
Update php-symfony's generator template to work with Symfony6 and php8. fix #11322
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.3.0),6.0.x
Hi @jebentier, @dkarlovi, @mandrean, @jfastnacht, @ackintosh, @ybelenko, @renepardon! I've made this PR because I needed to generate php code from a swagger file. I am using Symfony8 and php8. Hope this Pull request is good enough or a starting point to improve the symfony support of this project.