8000 [TwigBundle] document TwigRenderer BC break in UPGRADE-3.4 · codedmonkey/symfony@47a3d7a · GitHub
[go: up one dir, main page]

Skip to content

Commit 47a3d7a

Browse files
committed
[TwigBundle] document TwigRenderer BC break in UPGRADE-3.4
1 parent 866a142 commit 47a3d7a

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