8000 minor #26570 [TwigBundle] document TwigRenderer BC break in UPGRADE-3… · symfony/symfony@ae16d77 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae16d77

Browse files
committed
minor #26570 [TwigBundle] document TwigRenderer BC break in UPGRADE-3.4 (dmaicher)
This PR was merged into the 3.4 branch. Discussion ---------- [TwigBundle] document TwigRenderer BC break in UPGRADE-3.4 | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? |no | Tests pass? | yes | Fixed tickets | #24616, #25659 | License | MIT | Doc PR | - This is a follow up for #26553 as it seems impossible to fix the BC break in a clean way for everyone. ping @nicolas-grekas @Tobion Commits ------- 47a3d7a [TwigBundle] document TwigRenderer BC break in UPGRADE-3.4
2 parents 6c81b6d + 47a3d7a commit ae16d77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

UPGRADE-3.4.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,14 @@ TwigBridge
410410

411411
* deprecated the `Symfony\Bridge\Twig\Form\TwigRenderer` class, use the `FormRenderer`
412412
class from the Form component instead
413+
414+
* the service `twig.form.renderer` is now an instance of `FormRenderer`.
415+
So you might have to adjust your type-hints to `FormRendererInterface` if you are still relying on
416+
the `TwigRendererInterface` which was deprecated in Symfony 3.2
417+
418+
* retrieving the Renderer runtime from the twig environment via
419+
`$twig->getRuntime('Symfony\Bridge\Twig\Form\TwigRenderer')` is not working anymore
420+
and should be replaced with `$twig->getRuntime('Symfony\Component\Form\FormRenderer')` instead
413421

414422
* deprecated `Symfony\Bridge\Twig\Command\DebugCommand::set/getTwigEnvironment` and the ability
415423
to pass a command name as first argument

0 commit comments

Comments
 (0)
0