-
Notifications
You must be signed in to change notification settings - Fork 142
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
Feat: support symfony6 #541
Conversation
I updated composer.json for outdated repos and not needed dependencies for tests. |
Thank you for your effort, I hope Payum will fully support symfony6 |
@ancient-spirit I updated this comment. @pierredup Is this PR going in the right direction? Any suggestions to move this forward? |
I changed composer.json to replace payum/payum in favor of require single gateways (see Payum/Payum#912) |
@Chris53897 Thanks for all the effort on this. I'm going to keep this open for a bit to see where Payum/Payum#928 goes. If we release a new major version of Payum/Payum, then the next major version of Payum/PayumBundle should support the Payum version (so there might be more changes required in this repo before we can tag a new major version) |
I would like to try your pull request, and maybe give some help if needed, but I cannot find a way to install it.
But I get this error : |
@Fl0ux You can add the "require": {
"payum/payum-bundle": "dev-feature/support-symfony6"
} |
@pierredup was faster with responding ;) |
PR to close the problem getMasterRequest() vs getMainRequest() Payum/Payum#934 |
@pierredup It will take a while until Payum/Payum#928 will result in 2.x. I would prefer to get symfony 6 up and running with this bundle and Payum/Core. WDYT? |
@Fl0ux I made a change to composer.json to allow an install with dev-1.x branch. This will be reverted after 1.7.1 is released. I did a quicktest and it looks like it works. But our application needs adjustments, so i can not verify at the moment. |
I did a test with onetime payment via saferpay-gateway and creditcard. It worked. Next step is to test a twotime payment. @Fl0ux Did you found some time to make some tests? |
I did now test a recurrent payment (twotime payment) with saferpay-gateway and it worked. It would be great to have a 1.7.1 release of payum/payum, so this PR does not have to use |
@pierredup Sorry to nag you. Is there any update on this topic? |
Hello @pierredup 👋 Do you have any perspective on when this change could be merged and released? :) We would definitely need it in Sylius (issue already linked) in the nearest future. Thanks in advance! 🚀 🖖 |
Sorry that it took this long, I contemplated the way forward with the various versions (for PHP and Symfony), and decided to not do a major release at the moment, but release a new 2.x version, which includes support for Symfony 6, as well as keeping support for Symfony 4 and 5. The reasons for this, is because Symfony 4.4 is still in active maintenance, so I don't want to drop support for it at the moment, and also don't want to maintain 2 versions of the bundle (2.x for SF 4 and 5, and 3.0 for SF 6). Also, the changes required to support Symfony 4 - 6 is not a lot, so it should not be a big burden to maintain it all in a single version in the interim (until the next major version bump, which will definitely drop PHP < 8). Lastly, I think if we drop support for PHP 7 and support PHP 8 (or 8.1) only, then there are a lot more features that we can add and make more use of the new language feature. Which is why I want to work on Payum V2 first, which will support PHP 8.1+ only, but re-architect some of the internals as well, and provide a bit more features. After that, then PayumBundle 3.0 can come with support for Payum V2 only. @Chris53897 Thanks for all the effort on this PR! I'm going to merge this now, but will hold off on a release for about a week, so that I can first test this with various projects to ensure nothing is broken. If there are no issues, then a 2.5 release with this changes can be expected any time next week. |
@pierredup Please do not forget to bump this version after payum has a new tag. Commit that fixes that. But i guess this commit is lost? Sorry i lost track. |
@Chris53897 That commit has been picked to the
It would be awesome to get some assistance on this. I've started working on some improvements for V2 and will start creating a few draft PRs over the next couple of weeks |
Great. Thanks |
Hi,
this PR will close #539
I applied some recommendations from PhpStorm-IDE.
Only the untitests are executed. i did not make a real test with an existing project.
Info: I marked some tests as incomplete. These are related to form.factory that needs a session under Symfony 6.
These tests need to be rewritten, but i do not know how. I guess it is related to the config-option
csrf_protection: true
.But other tests need this config to be true.
Best way (i read about) is to rewrite the tests in a request-context. But i do not know how to do this.
Greetz