Skip to content

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.

3 participants