[TwigBundle] document TwigRenderer BC break in UPGRADE-3.4
This commit is contained in:
parent
866a1429b7
commit
47a3d7a084
@ -410,6 +410,14 @@ TwigBridge
|
|||||||
|
|
||||||
* deprecated the `Symfony\Bridge\Twig\Form\TwigRenderer` class, use the `FormRenderer`
|
* deprecated the `Symfony\Bridge\Twig\Form\TwigRenderer` class, use the `FormRenderer`
|
||||||
class from the Form component instead
|
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
|
* deprecated `Symfony\Bridge\Twig\Command\DebugCommand::set/getTwigEnvironment` and the ability
|
||||||
to pass a command name as first argument
|
to pass a command name as first argument
|
||||||
|
Reference in New Issue
Block a user