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

Refactor Twig registration and usage #455

Merged
merged 14 commits into from
Feb 18, 2022
Merged

Conversation

LukeTowers
Copy link
Member

@LukeTowers LukeTowers commented Feb 18, 2022

There are a number of long standing issues with how Twig is used in Winter, mostly due to pollution of the global twig instance and inconsistent / inaccessible uses of custom Twig environments. This PR aims to fix most if not all of the issues.

An initial attempt at this refactor was made by @SeriousKen in octobercms/october#3575, this PR takes inspiration from that PR and much thanks to @SeriousKen for the initial work on it. Another attempt was made by @mjauvin in octobercms/october#4803 but that didn't address all of the concerns either.

Issues:

@LukeTowers LukeTowers added Status: In Progress maintenance PRs that fix bugs, are translation changes or make only minor changes labels Feb 18, 2022
@LukeTowers LukeTowers added this to the v1.2.0 milestone Feb 18, 2022
@LukeTowers LukeTowers mentioned this pull request Feb 18, 2022
71 tasks
@LukeTowers LukeTowers marked this pull request as ready for review February 18, 2022 20:06
@LukeTowers LukeTowers changed the title [WIP] Refactor Twig registration and usage Refactor Twig registration and usage Feb 18, 2022
@LukeTowers LukeTowers merged commit 8132617 into wip/1.2 Feb 18, 2022
@LukeTowers LukeTowers deleted the wip/twig-environments branch February 18, 2022 20:23
This was referenced Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance PRs that fix bugs, are translation changes or make only minor changes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants