Skip to content

private runtimeInitialized property in Twig_Environment is a barrier to overriding loadTemplate() #1811

Closed
@star-szr

Description

@star-szr

This issue is for 2.x. Coming from https://www.drupal.org/node/2555243.

Drupal 8 extends Twig_Environment, and because the runtimeInitialized property is now private in 2.x our override of loadTemplate() no longer works.

I think we need to either add a getter or make it protected. Once there is a clear path forward I'm happy to submit a PR.

This looks to be the only barrier to our upgrading to Twig 2.x as we near RC1 that is outside of our control. This was changed in #1773.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions