From dc8058a82a31db86d0a62564a96da0e7342d6ed6 Mon Sep 17 00:00:00 2001 From: Florian Rey Date: Wed, 12 Sep 2018 09:57:09 +0200 Subject: [PATCH] Use namespaced twig paths --- Listener/Notifier.php | 2 +- Resources/views/mail.html.twig | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Listener/Notifier.php b/Listener/Notifier.php index 2f18a2d..c0d6351 100644 --- a/Listener/Notifier.php +++ b/Listener/Notifier.php @@ -330,7 +330,7 @@ public function createMailAndSend($exception, Request $request = null, $context return; } - $body = $this->twig->render('ElaoErrorNotifierBundle::mail.html.twig', array( + $body = $this->twig->render('@ElaoErrorNotifier/mail.html.twig', array( 'exception' => $exception, 'request' => $request ? $this->filterRequest($request): null, 'status_code' => $exception->getCode(), diff --git a/Resources/views/mail.html.twig b/Resources/views/mail.html.twig index 4214b2b..4cc53e0 100755 --- a/Resources/views/mail.html.twig +++ b/Resources/views/mail.html.twig @@ -341,10 +341,10 @@

Stack Trace

{% for position, e in exception.toarray %} - {# see TwigBundle:Exception:traces.html.twig #} + {# see @Twig/Exception/traces.html.twig #}
    {% for i, trace in e.trace %} - {# see TwigBundle:Exception:trace.html.twig #} + {# see @Twig/Exception/trace.html.twig #}
  1. {% if trace.class is defined %} at @@ -480,7 +480,7 @@

    Request GET Parameters

    {% if request.query.all|length %} - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.query } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.query } only %} {% else %}

    No GET parameters @@ -503,7 +503,7 @@

    Request POST Parameters

    {% if request.request.all|length %} - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.request } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.request } only %} {% else %}

    No POST parameters @@ -526,7 +526,7 @@

    Request Attributes

    {% if request.attributes.all|length %} - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.attributes } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.attributes } only %} {% else %}

    No Request Attributes @@ -549,7 +549,7 @@

    Request Cookies

    {% if request.cookies.all|length %} - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.cookies } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.cookies } only %} {% else %}

    No Request Cookies @@ -570,7 +570,7 @@

    Request Headers

    - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.headers } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.headers } only %} @@ -586,7 +586,7 @@

    Request Server Parameters

    - {% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.server } only %} + {% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.server } only %}