Skip to content

Conversation

@smnandre
Copy link
Member

@smnandre smnandre commented Feb 10, 2024

As Symfony Twig Bridge & Twig Bundle have decided to skip Twig 3.9 for now, we should do the same, as testing and/or maintaining a compatible version would be really hard without the bundle support.

symfony/twig-bridge@2abddb1
symfony/twig-bundle@23a02ff

Update:

Twig 3.9 introduce a major change in the way templates are rendered, and to fully test/fix our compatibility, we need to wait Bridge and Bundle to allow Twig 3.9

In the meantime, please do not set "use_yield = true" as we are not ready yet.

This is something that has a major impact on TwigComponent and LiveComponent, and we'll probably need some changes on the CI / test suite to handle both modes.


Pull Request (compatibility - wip) : #1487 (help welcomed)
Issue: #1390
Twig PR : twigphp/Twig#3950

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Feb 10, 2024
@smnandre
Copy link
Member Author

I "revert" #1478 in this PR

Please do not set "use_yield = true" while our compatibility is not OK.

This is something that has a major impact on TwigComponent and LiveComponent, and we'll probably need some changes on the CI to handle both modes.

cc @weaverryan @kbond

@smnandre smnandre changed the title [Twig][Live] Skip Twig 3.9 (yield) [Twig][Live] Skip Twig 3.9 🚒 (do not set use_yield = true for now) Feb 10, 2024
Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking in this

"symfony/property-access": "^5.4.5|^6.0|^7.0",
"symfony/ux-twig-component": "^2.8",
"twig/twig": "^2.14.7|^3.0.4"
"twig/twig": "^2.14.7|~3.8.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor - but technically we are still ok if you’re using 3.0.4. We just want to not allow 3.9. Perhaps we should write it to still allow the lower twig 3 versions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you write this ? If we use <= it will allow twig 1.0 no ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I see you've just matched what Symfony core is doing. Ok for me then!

@weaverryan
Copy link
Member

Thanks Simon!

@weaverryan weaverryan merged commit 5ba6459 into symfony:2.x Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Needs Review Needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants