Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Use namespaced twig paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Rey committed Sep 12, 2018
1 parent 50c226e commit dc8058a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Listener/Notifier.php
Expand Up @@ -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(),
Expand Down
16 changes: 8 additions & 8 deletions Resources/views/mail.html.twig
Expand Up @@ -341,10 +341,10 @@
<div class="block">
<h4>Stack Trace</h4>
{% for position, e in exception.toarray %}
{# see TwigBundle:Exception:traces.html.twig #}
{# see @Twig/Exception/traces.html.twig #}
<ol class="traces list_exception" id="traces">
{% for i, trace in e.trace %}
{# see TwigBundle:Exception:trace.html.twig #}
{# see @Twig/Exception/trace.html.twig #}
<li>
{% if trace.class is defined %}
at
Expand Down Expand Up @@ -480,7 +480,7 @@
<h4>Request GET Parameters</h4>

{% 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 %}
<p>
<em>No GET parameters</em>
Expand All @@ -503,7 +503,7 @@
<h4>Request POST Parameters</h4>

{% 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 %}
<p>
<em>No POST parameters</em>
Expand All @@ -526,7 +526,7 @@
<h4>Request Attributes</h4>

{% 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 %}
<p>
<em>No Request Attributes</em>
Expand All @@ -549,7 +549,7 @@
<h4>Request Cookies</h4>

{% 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 %}
<p>
<em>No Request Cookies</em>
Expand All @@ -570,7 +570,7 @@
<tr>
<td>
<h4>Request Headers</h4>
{% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.headers } only %}
{% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.headers } only %}
</td>
</tr>
</table>
Expand All @@ -586,7 +586,7 @@
<tr>
<td>
<h4>Request Server Parameters </h4>
{% include 'ElaoErrorNotifierBundle::_bag.html.twig' with { 'bag': request.server } only %}
{% include '@ElaoErrorNotifier/_bag.html.twig' with { 'bag': request.server } only %}
</td>
</tr>
</table>
Expand Down

0 comments on commit dc8058a

Please sign in to comment.