Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Closed
@garak

Description

@garak

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