Skip to content

Broken Symfony profiler with twig "app" variable is passed in context #34

@danakil

Description

@danakil

Hello,

I have installed this bundle on my Sylius 1.11 project, with Symfony 5.4.51.

If I want to pass the "app" global variable in a template :
{% if feature('devel_cart_order_cross_selling', {'twig_app': app|default}) %}
the entire profiler bar becomes empty, with just a "Loading..." text. When I click on it to display the profiler, it says:

Token not found Token "3834c4" not found.

This may be an edge case, and not a very good idea to use the entire "app" variable in the context, but I thougth I'll let you know.
Feel free to close if this report is not relevant or related to your bundle.

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