Skip to content
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

Correcrtion des dépréciations Twig #1653

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

stakovicz
Copy link
Contributor

Pour préparer la montée de version en SF 5.4 (go, go go !), on corrige des dépréciations.

Détails des dépréciations traitées :

The Symfony\Bundle\TwigBundle\Loader\FilesystemLoader class is deprecated since version 4.3 and will be removed in 5.0; use Twig notation for templates instead.

Implique de supprimer la config framework.twig.templating.engines
Ce qui implique de changer le path des templates en remplaçant les : par des / (à peu près)

The "twig.exception_controller" configuration key has been deprecated in Symfony 4.4, set it to "null" and use "framework.error_controller" configuration key instead.

Implique le changement de la config twig.exception_controller: null

Loading Twig templates for "TwigBundle" from the "/var/www/html/app/Resources/TwigBundle/views" directory is deprecated since Symfony 4.2, use "/var/www/html/templates/bundles/TwigBundle" instead.

Déplacement de la surcharge de la page 404

Loading Twig templates from the "/var/www/html/app/Resources/views" directory is deprecated since Symfony 4.2, use "/var/www/html/templates" instead.

Déplacement des templates à la racine + adaptation dans la class Mail

@stakovicz stakovicz requested review from agallou and Mopolo February 28, 2025 10:04
@stakovicz stakovicz self-assigned this Feb 28, 2025
Copy link
Contributor

@Mopolo Mopolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trop hâte 🤩

@stakovicz stakovicz merged commit d568624 into afup:master Mar 1, 2025
4 checks passed
@stakovicz stakovicz deleted the remove-deprecations-twig branch March 1, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants