Skip to content

[TwigComponent] Twig "use_yield" compatibility #1487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

smnandre
Copy link
Member

@smnandre smnandre commented Feb 10, 2024

Use YielReady and allow Twig 3.9

Need #1753 to be merged first

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Feb 10, 2024
@smnandre smnandre marked this pull request as draft February 10, 2024 12:55
weaverryan added a commit that referenced this pull request Feb 14, 2024
…rue` for now) (smnandre)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Twig][Live] Skip Twig 3.9 🚒  (do not set `use_yield = true` for now)

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

Commits
-------

6165384 [Twig][Live] Skip Twig 3.9 🚒  (do not set `use_yield = true` for now)
symfony-splitter pushed a commit to symfony/ux-live-component that referenced this pull request Feb 14, 2024
…rue` for now) (smnandre)

This PR was squashed before being merged into the 2.x branch.

Discussion
----------

[Twig][Live] Skip Twig 3.9 🚒  (do not set `use_yield = true` for now)

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) : symfony/ux#1487 (help welcomed)
Issue: symfony/ux#1390
Twig PR : twigphp/Twig#3950

Commits
-------

61653842 [Twig][Live] Skip Twig 3.9 🚒  (do not set `use_yield = true` for now)
@smnandre smnandre force-pushed the sa/yield-template branch 4 times, most recently from c8974e3 to 7ecfb65 Compare April 18, 2024 19:57
@smnandre smnandre marked this pull request as ready for review April 18, 2024 20:03
@smnandre smnandre changed the title [TwigComponent] Twig "use_yield" compatibility (wip) [TwigComponent] Twig "use_yield" compatibility Apr 18, 2024
@smnandre smnandre requested review from kbond and WebMamba April 19, 2024 07:41
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Apr 19, 2024
@kbond kbond force-pushed the sa/yield-template branch from 08c6f57 to b07d799 Compare April 19, 2024 13:35
@kbond
Copy link
Member

kbond commented Apr 19, 2024

Thanks Simon.

@kbond kbond merged commit ea5273c into symfony:2.x Apr 19, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants