Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae16d77

Browse filesBrowse 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
Copy full SHA for ae16d77

File tree

1 file changed

+8
-0
lines changed
Filter options

1 file changed

+8
-0
lines changed

‎UPGRADE-3.4.md

Copy file name to clipboardExpand all lines: UPGRADE-3.4.md
+8Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.