-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add Symfony 5 and Twig 3 support #308
Add Symfony 5 and Twig 3 support #308
Conversation
cffc86e
to
829ac8c
Compare
829ac8c
to
f85e17b
Compare
f85e17b
to
ad62bda
Compare
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Class Sonata\\\\UserBundle\\\\Model\\\\User not found\\.$#" |
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.
What is this new ?
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.
Oh, I see, you removed the "sonata-project/user-bundle": "^3.6 || ^4.0"
dependency.
Should we keep it then ?
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.
We should keep it yes. The integration with the user-bundle is deprecated. I just removed the required-dev dependency in order to be able to test with Symfony 5.0
I'd like to have at least a job checking the deprecated integration with sonata-project/user-bundle. Otherwise we could break that without any notice. |
Added the necessary code here, and also dev-kit PR: sonata-project/dev-kit#796 @phansys |
composer.json
Outdated
"symfony/http-foundation": "^4.4", | ||
"symfony/http-kernel": "^4.4", | ||
"php": "^7.2", | ||
"symfony/config": "^4.4 || ^5.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.
Symfony 5.0 is unsupported: https://symfony.com/releases/5.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.
Fixed
91d552e
to
ea71188
Compare
@jordisala1991 I just saw you let |
yes, that is on purpose. Symfony templating does not exist on 5.0. the ideal solution would be remove it, but that can only be safely implement on master because it implies a bc break here. |
Subject
I am targeting this branch, because this is needed to keep moving forward SonataAdminBundle major release and compat with Symfony 5.0.
Closes #305 .
Changelog