Skip to content

Makes the TemplateBoxNode yield ready#412

Merged
VincentLanglet merged 2 commits into
sonata-project:2.xfrom
JanStorm:2.x
Sep 9, 2024
Merged

Makes the TemplateBoxNode yield ready#412
VincentLanglet merged 2 commits into
sonata-project:2.xfrom
JanStorm:2.x

Conversation

@JanStorm

@JanStorm JanStorm commented Sep 6, 2024

Copy link
Copy Markdown

Subject

Twig 3.9 introduces a new "yield" mode in which all Node implementations should be flagged with #[YieldReady] once they've been made ready for "yield".

See https://github.com/twigphp/Twig/blob/3.x/CHANGELOG

For example, this has already been implemented in the symfony twig-bridge bundle: symfony/twig-bridge@14a73aa

I am targeting this branch, because its a non-breaking change, which solves a current twig deprecation since twig 3.9.

Changelog

### Added
- Support for twig's "yield" mode for output generation.

 Twig 3.9 introduces a new "yield" mode in which all Node implementations should be flagged with `#[YieldReady]` once they've been made ready for "yield". See the changelog of twig.
@VincentLanglet

Copy link
Copy Markdown
Member

Hi @JanStorm

Thanks for the PR.

Can you run the linter to fix (unrelated) cs errors ?
https://github.com/sonata-project/twig-extensions/actions/runs/10738861759/job/29879597578?pr=412

Thanks

php-cs-fixer changed their ruleset and therefore new linting issues occurred
@JanStorm

JanStorm commented Sep 9, 2024

Copy link
Copy Markdown
Author

yes of course, done!

@VincentLanglet VincentLanglet merged commit cdc475c into sonata-project:2.x Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants