-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
Update login.html.twig #1430
Update login.html.twig #1430
Conversation
Taking into account the following change : "title_mode" (with values "single_image", "single_text", "both") is deprecated since sonata-project/admin-bundle 3.104 and replaced by "logo_content" (with values "icon", "text", "all").
Using the exact same conditions as in standard_layout.html.twig file of SonataAdminBundle.
You should also update minimum version of the admin bundle, because previous versions do not have this code deprecated |
You mean setting |
Yes, And we are able to do this, its not a bc break to update a dependency, you just have to change the version on the composer.json |
I started to work on 5.x branch to prepare for SF 5 / 6, without FOSUser and all. Please take a look at how I solve this on tihs precise PR to copy the same code: #1444 This will help with the merge to higher branches. |
Do you want me to update checkEmail, request and reset files as well in this PR ? Compared to my changes, you removed the conditions |
You're right, my PR is only for Sonata 4, where I do not take into account the old deprecated values, because they are removed on Sonata 4. And yes, it would be nice to fix those 3 templates at once, it should share the same fix. |
Finished my copy paste. |
@AntoineRoue Can you add a changelog in your first message to explain the purpose of this PR. This will be used for the next release. You can take a look at other PR to see the format. |
Done. Is that good ? |
Thanks |
Subject
Taking into account the following change : "title_mode" (with values "single_image", "single_text", "both") is deprecated since sonata-project/admin-bundle 3.104 and replaced by "logo_content" (with values "icon", "text", "all").
I'm not sure if I should've added a comment "{# NEXT_MAJOR: Remove the title_mode check #}" because it is for the next major of SonataAdminBundle.
Changelog