From 11c8b4531fa9c28442ed43d0c1e541a97dc3012d Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Tue, 21 May 2019 09:45:21 +0200 Subject: [PATCH] Add exception as HTML comment to beginning and end of `exception_full.html.twig` Every now and then you are confronted with an exception in Symfony's debug mode. Sometimes, you will see this in your browser console or terminal. To make it easier to easily see what's going on, this change adds a HTML comment on 2 locations: - before the `` tag; - after the `` tag. This way, you don't have to scan the very verbose HTML that Symfony generates. You can quickly glance at the end or the beginning. --- src/Symfony/Bundle/TwigBundle/CHANGELOG.md | 5 +++++ .../Resources/views/Exception/exception_full.html.twig | 8 ++++++++ .../Bundle/TwigBundle/Resources/views/layout.html.twig | 2 ++ 3 files changed, 15 insertions(+) diff --git a/src/Symfony/Bundle/TwigBundle/CHANGELOG.md b/src/Symfony/Bundle/TwigBundle/CHANGELOG.md index 1be455e4e8288..f450efb153277 100644 --- a/src/Symfony/Bundle/TwigBundle/CHANGELOG.md +++ b/src/Symfony/Bundle/TwigBundle/CHANGELOG.md @@ -1,6 +1,11 @@ CHANGELOG ========= +4.4.0 +----- + + * added HTML comment to beginning and end of `exception_full.html.twig` + 4.2.0 ----- diff --git a/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception_full.html.twig b/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception_full.html.twig index e4f220896ecda..4291f1177db3e 100644 --- a/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception_full.html.twig +++ b/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception_full.html.twig @@ -137,6 +137,14 @@ {{ exception.message }} ({{ status_code }} {{ status_text }}) {% endblock %} +{% block before_html %} + +{% endblock %} + +{% block after_html %} + +{% endblock %} + {% block body %} {% include '@Twig/Exception/exception.html.twig' %} {% endblock %} diff --git a/src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig b/src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig index e0f679fccd2a7..faca2e7fbc795 100644 --- a/src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig +++ b/src/Symfony/Bundle/TwigBundle/Resources/views/layout.html.twig @@ -1,3 +1,4 @@ +{% block before_html %}{% endblock %} @@ -34,3 +35,4 @@ {{ include('@Twig/base_js.html.twig') }} +{% block after_html %}{% endblock %} 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