Skip to content

Drop the deprecated PHP templating integration - #508

Open
Amoifr wants to merge 1 commit into
KnpLabs:masterfrom
Amoifr:feat-501-drop-templating
Open

Amoifr wants to merge 1 commit into
KnpLabs:masterfrom
Amoifr:feat-501-drop-templating

Conversation

@Amoifr

@Amoifr Amoifr commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #501

The templating integration has announced its own removal since 3.3, both in code and in the docs:

trigger_deprecation('knplabs/knp-menu-bundle', '3.3', 'Using the templating component is deprecated since version 3.3, this option will be removed in version 4.');

master is that major already, having dropped Symfony 5 in #500 and PHP 8.1 in #506, so this takes it out: the templating option, the helper, its service file, the XSD attribute, the symfony/templating dev dependency that nothing else used, the tests and the documentation.

That is the second half of what @tacman asked for in the issue. The first half, the Symfony 8 bump, landed with those two PRs.

Test suite: 26 tests green, against 36 on master. The difference is the ten tests that covered the removed feature, and the PHPUnit deprecations drop from 12 to 4 with the legacy ones gone.

The templating option, its helper and its service file have carried a
deprecation since 3.3 announcing their removal in version 4, and master is
already that major: it dropped Symfony 5 and PHP 8.1.

symfony/templating goes with it, since nothing else used it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump version with Symfony 8

1 participant