Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Twig icon in profiler is active even without templates rendered #30033

Copy link
Copy link
Closed
@garak

Description

@garak
Issue body actions

Symfony version(s) affected: 4.2.2

Description
A couple of images should explain the problem.
This is profiler I see:
schermata da 2019-01-30 09-29-13
Then, I click on Twig icon and I get this:
schermata da 2019-01-30 09-30-30
So, the Twig icon is active (e.g. not in gray) even when profiled request rendered no templates.
This is inconsistent with other profiler icons, that are grey when no info is collected and active otherwise.

How to reproduce
Just call a route in your application when Twig is not involved, e.g. an action returning a JsonResponse.

Possible Solution
Likely some check is missing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.