Skip to content

In Twig 2.x, _self is a string instead of a Template instance #322

Closed
@javiereguiluz

Description

@javiereguiluz

In the templates of this application we use the following to display the source code of the current Twig template:

{{ show_source_code(_self) }}

However, Twig 2.x changed the _self variable and now it only returns a string of the template path instead of the Template object instance.

We should change/improve this feature to make the application compatible with Symfony 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions