diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
index 361e684fbf938..3fb596b0960d2 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
@@ -169,6 +169,7 @@
{% if index == 2 %}
{% endif %}
+
{% if call.class is defined %}
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
{% elseif call.function is defined %}
@@ -179,7 +180,14 @@
{% set from = '-' %}
{% endif %}
- - Called from {{ call.file is defined and call.line is defined ? call.file|format_file(call.line, from) : from|raw }}
+ {% set file_name = (call.file is defined and call.line is defined) ? call.file|replace({'\\': '/'})|split('/')|last %}
+
+ -
+ {{ from|raw }}
+ {% if file_name %}
+ (called from {{ call.file|format_file(call.line, file_name)|raw }})
+ {% endif %}
+
{% if index == stack|length - 1 %}
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy