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

[TwigBundle] Deprecate base_template_class option #54657

Open
wants to merge 1 commit into
base: 7.1
Choose a base branch
from

Conversation

Steveb-p
Copy link
Contributor

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? yes
Issues
License MIT

According to https://github.com/twigphp/Twig/blob/3.x/CHANGELOG#L222, base_template_class option has been removed from Twig 3.0.

Symfony still allows to pass this configuration option via https://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.

@xabbuh
Copy link
Member

xabbuh commented Apr 18, 2024

The deprecation should be documented in UPRADE-7.1.md and in the changelog file of TwigBundle though.

@Steveb-p
Copy link
Contributor Author

Steveb-p commented Apr 18, 2024

The deprecation should be documented in UPRADE-7.1.md and in the changelog file of TwigBundle though.

I will follow up with this shortly 😅 I just need to check how they are usually done :)

@carsonbot carsonbot changed the title Deprecate Twig Bundle base_template_class option [TwigBundle] Deprecate Twig Bundle base_template_class option Apr 19, 2024
@OskarStark OskarStark changed the title [TwigBundle] Deprecate Twig Bundle base_template_class option [TwigBundle] Deprecate base_template_class option Apr 19, 2024
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.

None yet

5 participants