You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, vendor I using expected that twig.form.renderer service is implementing TwigRendererInterface. It was removed at Symfony4 and marked as deprecated at 3.4.
But at Symfony 3.4 already FormRendererInterface implementation was received. So, now I need to change expected type, what brakes BC with 3.*,
So, my request is to let twig.form.renderer implement Symfony\Bridge\Twig\Form\TwigRendererInterface at Symfony3.4 only.
If we revert the service definition change on 3.4 (so keep using the deprecated TwigRendererInterface) then it might be fine for all people who expect an instance of FormRendererInterface.
An issue is that the twig runtime would also change again and possibly introduce problems again for projects that adapted to the non-deprecated class.
@dmaicher if you want to give it a try, please do. The less BC break the better (reverting a BC break is a BC break as you said, so we should be careful, and select the best middle ground, if any)
….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
Uh oh!
There was an error while loading. Please reload this page.
Hi, vendor I using expected that
twig.form.renderer
service is implementingTwigRendererInterface
. It was removed at Symfony4 and marked as deprecated at 3.4.But at Symfony 3.4 already FormRendererInterface implementation was received. So, now I need to change expected type, what brakes BC with 3.*,
So, my request is to let
twig.form.renderer
implementSymfony\Bridge\Twig\Form\TwigRendererInterface
at Symfony3.4 only.Vendor lib:
https://github.com/genemu/GenemuFormBundle/pull/446/files
https://github.com/genemu/GenemuFormBundle/blob/master/Resources/config/twig.xml
IMHO, the bug should be fixed at Symfony 3.4 side. Am I right?
Related issue: #24616
The text was updated successfully, but these errors were encountered: