Skip to content
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

Makes the TemplateBoxNode yield ready #412

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

JanStorm
Copy link
Contributor

@JanStorm JanStorm commented Sep 6, 2024

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
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
Copy link
Contributor Author

JanStorm commented Sep 9, 2024

yes of course, done!

@VincentLanglet VincentLanglet merged commit cdc475c into sonata-project:2.x Sep 9, 2024
25 checks passed
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