From bd5a62ecedcc845f98ae7283346c64d1e2c2fc30 Mon Sep 17 00:00:00 2001 From: Rafikooo Date: Fri, 15 Nov 2024 18:02:57 +0100 Subject: [PATCH] [TwigHooks] Mark debug info with different colors for templates and components --- src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php b/src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php index 470208f0..e8b94dc4 100644 --- a/src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php +++ b/src/TwigHooks/src/Profiler/Dumper/HtmlDumper.php @@ -67,8 +67,9 @@ private function dumpHookableProfile(HookableProfile $hookableProfile, string $p }; $str = sprintf( - '%s└ (%s) [↑ %d, ⏲ %d ms] %s (%s)', + '%s└ (%s) [↑ %d, ⏲ %d ms] %s (%s)', $prefix, + $targetName === 'Template' ? 'status-success' : 'status-warning', $targetName, $hookableProfile->getHookable()->priority(), $hookableProfile->getDuration(),