Skip to content

Fix issue with TwigEnvironment loader's not used when provided#1

Open
MacFJA wants to merge 1 commit intophptransformers:masterfrom
MacFJA:fix-twig-loader
Open

Fix issue with TwigEnvironment loader's not used when provided#1
MacFJA wants to merge 1 commit intophptransformers:masterfrom
MacFJA:fix-twig-loader

Conversation

@MacFJA
Copy link
Member

@MacFJA MacFJA commented Jan 13, 2016

Fix an issue when TwigEnvironment is passed to the TwigTransformer. The loader initialized with the TwigEnvironment is not used.

This PR fix it by storing in the class the fact that the transformer was created with an already created TwigEnvironment and use this information to directly use TwigEnvironment loader instead of creating a new one.

(Original PR: phptransformers/phptransformer#29)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant