Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[TwigBundle] Deprecatebase_template_class option#54657
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
xabbuh commentedApr 18, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The deprecation should be documented in |
Steveb-p commentedApr 18, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I will follow up with this shortly 😅 I just need to check how they are usually done :) |
base_template_class optionbase_template_class optionbase_template_class optionbase_template_class optionfabpot commentedMay 2, 2024
Thank you@Steveb-p. |
derrabus commentedMay 2, 2024
The tests needed a little adjustment:#54810 |
…e_class (derrabus)This PR was merged into the 7.1 branch.Discussion----------[TwigBundle] Fix deprecation warnings about base_template_class| Q | A| ------------- | ---| Branch? | 7.1| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | Follows#54657| License | MITSince#54657, TwigBundle uses its own deprecated option in non-legacy tests. This PR fixes this by testing that option and the triggered deprecation message in a separate test.Commits-------10d48cd [TwigBundle] Fix deprecation warnings about base_template_class
According tohttps://github.com/twigphp/Twig/blob/3.x/CHANGELOG#L222,
base_template_classoption has been removed from Twig 3.0.Symfony still allows to pass this configuration option viahttps://github.com/symfony/symfony/blob/7.1/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L132, but there is of course no effect.
I think it would be good to deprecate it and prepare it's removal in 8.x? Since Symfony 7.x requires Twig 3.x.