[TwigBundle] document TwigRenderer BC break in UPGRADE-3.4

This commit is contained in:
David Maicher 2018-03-16 19:07:30 +01:00
parent 866a1429b7
commit 47a3d7a084

View File

@ -410,6 +410,14 @@ TwigBridge
* deprecated the `Symfony\Bridge\Twig\Form\TwigRenderer` class, use the `FormRenderer`
class from the Form component instead
* the service `twig.form.renderer` is now an instance of `FormRenderer`.
So you might have to adjust your type-hints to `FormRendererInterface` if you are still relying on
the `TwigRendererInterface` which was deprecated in Symfony 3.2
* retrieving the Renderer runtime from the twig environment via
`$twig->getRuntime('Symfony\Bridge\Twig\Form\TwigRenderer')` is not working anymore
and should be replaced with `$twig->getRuntime('Symfony\Component\Form\FormRenderer')` instead
* deprecated `Symfony\Bridge\Twig\Command\DebugCommand::set/getTwigEnvironment` and the ability
to pass a command name as first argument