Files
taome/var/cache/dev/twig/70/7043a6aa4a1cc55fe032ded0d556d14ed6e1f9a9be7bb95952811d509a7c4e92.php
2020-10-07 10:37:15 +02:00

1054 lines
57 KiB
PHP

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @WebProfiler/Collector/logger.html.twig */
class __TwigTemplate_42f75e584b4bf28c7ae3981802a448fa5cc6573642f49e08068fc3bd922e7d19 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/logger.html.twig", 1);
$this->blocks = [
'toolbar' => [$this, 'block_toolbar'],
'menu' => [$this, 'block_menu'],
'panel' => [$this, 'block_panel'],
];
}
protected function doGetParent(array $context)
{
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/logger.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/logger.html.twig"));
// line 3
$context["helper"] = $this;
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 5
public function block_toolbar($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
// line 6
echo " ";
if ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", []) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", [])) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", []))) {
// line 7
echo " ";
ob_start();
// line 8
echo " ";
$context["status_color"] = (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ("red") : ("yellow"));
// line 9
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg");
echo "
<span class=\"sf-toolbar-value\">";
// line 10
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) : (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", []) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", [])))), "html", null, true);
echo "</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 12
echo "
";
// line 13
ob_start();
// line 14
echo " <div class=\"sf-toolbar-info-piece\">
<b>Errors</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 16
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ("red") : (""));
echo "\">";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "counterrors", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "counterrors", []), 0)) : (0)), "html", null, true);
echo "</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Warnings</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 21
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", [])) ? ("yellow") : (""));
echo "\">";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "countwarnings", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "countwarnings", []), 0)) : (0)), "html", null, true);
echo "</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Deprecations</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 26
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", [])) ? ("yellow") : (""));
echo "\">";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "countdeprecations", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "countdeprecations", []), 0)) : (0)), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 29
echo "
";
// line 30
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => ($context["profiler_url"] ?? $this->getContext($context, "profiler_url")), "status" => ($context["status_color"] ?? $this->getContext($context, "status_color"))]);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 34
public function block_menu($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 35
echo " <span class=\"label label-status-";
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ("error") : (((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", []) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", []))) ? ("warning") : (""))));
echo " ";
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "logs", []))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 36
echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg");
echo "</span>
<strong>Logs</strong>
";
// line 38
if ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", []) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", [])) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", []))) {
// line 39
echo " <span class=\"count\">
<span>";
// line 40
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) : (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", []) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", [])))), "html", null, true);
echo "</span>
</span>
";
}
// line 43
echo " </span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 46
public function block_panel($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
// line 47
echo " <h2>Log Messages</h2>
";
// line 49
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "logs", []))) {
// line 50
echo " <div class=\"empty\">
<p>No log messages available.</p>
</div>
";
} else {
// line 54
echo " ";
// line 55
echo " ";
list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"], $context["silenced_logs"]) = [[], [], [], []];
// line 56
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "logs", []));
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 57
echo " ";
if (($this->getAttribute($context["log"], "scream", [], "any", true, true) && !$this->getAttribute($context["log"], "scream", []))) {
// line 58
echo " ";
$context["deprecation_logs"] = twig_array_merge(($context["deprecation_logs"] ?? $this->getContext($context, "deprecation_logs")), [0 => $context["log"]]);
// line 59
echo " ";
} elseif (($this->getAttribute($context["log"], "scream", [], "any", true, true) && $this->getAttribute($context["log"], "scream", []))) {
// line 60
echo " ";
$context["silenced_logs"] = twig_array_merge(($context["silenced_logs"] ?? $this->getContext($context, "silenced_logs")), [0 => $context["log"]]);
// line 61
echo " ";
} elseif (($this->getAttribute($context["log"], "priorityName", []) == "DEBUG")) {
// line 62
echo " ";
$context["debug_logs"] = twig_array_merge(($context["debug_logs"] ?? $this->getContext($context, "debug_logs")), [0 => $context["log"]]);
// line 63
echo " ";
} else {
// line 64
echo " ";
$context["info_and_error_logs"] = twig_array_merge(($context["info_and_error_logs"] ?? $this->getContext($context, "info_and_error_logs")), [0 => $context["log"]]);
// line 65
echo " ";
}
// line 66
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 67
echo "
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Info. &amp; Errors <span class=\"badge status-";
// line 70
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ("error") : ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countwarnings", [])) ? ("warning") : (""))));
echo "\">";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) ? ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "counterrors", [])) : (twig_length_filter($this->env, ($context["info_and_error_logs"] ?? $this->getContext($context, "info_and_error_logs"))))), "html", null, true);
echo "</span></h3>
<p class=\"text-muted\">Informational and error log messages generated during the execution of the application.</p>
<div class=\"tab-content\">
";
// line 74
if (twig_test_empty(($context["info_and_error_logs"] ?? $this->getContext($context, "info_and_error_logs")))) {
// line 75
echo " <div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
";
} else {
// line 79
echo " ";
echo $context["helper"]->getrender_table(($context["info_and_error_logs"] ?? $this->getContext($context, "info_and_error_logs")), "info", true);
echo "
";
}
// line 81
echo " </div>
</div>
<div class=\"tab\">
";
// line 87
echo " <h3 class=\"tab-title\">Deprecations <span class=\"badge status-";
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countdeprecations", [])) ? ("warning") : (""));
echo "\">";
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "countdeprecations", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "countdeprecations", []), 0)) : (0)), "html", null, true);
echo "</span></h3>
<p class=\"text-muted\">Log messages generated by using features marked as deprecated.</p>
<div class=\"tab-content\">
";
// line 91
if (twig_test_empty(($context["deprecation_logs"] ?? $this->getContext($context, "deprecation_logs")))) {
// line 92
echo " <div class=\"empty\">
<p>There are no log messages about deprecated features.</p>
</div>
";
} else {
// line 96
echo " ";
echo $context["helper"]->getrender_table(($context["deprecation_logs"] ?? $this->getContext($context, "deprecation_logs")), "deprecation", false, true);
echo "
";
}
// line 98
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Debug <span class=\"badge\">";
// line 102
echo twig_escape_filter($this->env, twig_length_filter($this->env, ($context["debug_logs"] ?? $this->getContext($context, "debug_logs"))), "html", null, true);
echo "</span></h3>
<p class=\"text-muted\">Unimportant log messages generated during the execution of the application.</p>
<div class=\"tab-content\">
";
// line 106
if (twig_test_empty(($context["debug_logs"] ?? $this->getContext($context, "debug_logs")))) {
// line 107
echo " <div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
";
} else {
// line 111
echo " ";
echo $context["helper"]->getrender_table(($context["debug_logs"] ?? $this->getContext($context, "debug_logs")), "debug");
echo "
";
}
// line 113
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">PHP Notices <span class=\"badge\">";
// line 117
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "countscreams", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "countscreams", []), 0)) : (0)), "html", null, true);
echo "</span></h3>
<p class=\"text-muted\">Log messages generated by PHP notices silenced with the @ operator.</p>
<div class=\"tab-content\">
";
// line 121
if (twig_test_empty(($context["silenced_logs"] ?? $this->getContext($context, "silenced_logs")))) {
// line 122
echo " <div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
";
} else {
// line 126
echo " ";
echo $context["helper"]->getrender_table(($context["silenced_logs"] ?? $this->getContext($context, "silenced_logs")), "silenced");
echo "
";
}
// line 128
echo " </div>
</div>
";
// line 131
$context["compilerLogTotal"] = 0;
// line 132
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "compilerLogs", []));
foreach ($context['_seq'] as $context["_key"] => $context["logs"]) {
// line 133
echo " ";
$context["compilerLogTotal"] = (($context["compilerLogTotal"] ?? $this->getContext($context, "compilerLogTotal")) + twig_length_filter($this->env, $context["logs"]));
// line 134
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['logs'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 135
echo " <div class=\"tab\">
<h3 class=\"tab-title\">Container <span class=\"badge\">";
// line 136
echo twig_escape_filter($this->env, ($context["compilerLogTotal"] ?? $this->getContext($context, "compilerLogTotal")), "html", null, true);
echo "</span></h3>
<p class=\"text-muted\">Log messages generated during the compilation of the service container.</p>
<div class=\"tab-content\">
";
// line 140
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "compilerLogs", []))) {
// line 141
echo " <div class=\"empty\">
<p>There are no compiler log messages.</p>
</div>
";
} else {
// line 145
echo " <table class=\"logs\">
<thead>
<tr>
<th class=\"full-width\">Class</th>
<th>Messages</th>
</tr>
</thead>
<tbody>
";
// line 154
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "compilerLogs", []));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["class"] => $context["logs"]) {
// line 155
echo " <tr class=\"\">
<td class=\"font-normal\">
";
// line 157
$context["context_id"] = ("context-compiler-" . $this->getAttribute($context["loop"], "index", []));
// line 158
echo "
<a class=\"btn btn-link sf-toggle\" data-toggle-selector=\"#";
// line 159
echo twig_escape_filter($this->env, ($context["context_id"] ?? $this->getContext($context, "context_id")), "html", null, true);
echo "\" data-toggle-alt-content=\"";
echo twig_escape_filter($this->env, $context["class"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["class"], "html", null, true);
echo "</a>
<div id=\"";
// line 161
echo twig_escape_filter($this->env, ($context["context_id"] ?? $this->getContext($context, "context_id")), "html", null, true);
echo "\" class=\"context sf-toggle-content sf-toggle-hidden\">
<ul>
";
// line 163
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["logs"]);
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 164
echo " <li>";
echo $this->env->getExtension('Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension')->dumpLog($this->env, $this->getAttribute($context["log"], "message", []));
echo "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
echo " </ul>
</div>
</td>
<td class=\"font-normal text-right\">";
// line 169
echo twig_escape_filter($this->env, twig_length_filter($this->env, $context["logs"]), "html", null, true);
echo "</td>
</tr>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['class'], $context['logs'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 172
echo " </tbody>
</table>
";
}
// line 175
echo " </div>
</div>
</div>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 182
public function getrender_table($__logs__ = null, $__category__ = "", $__show_level__ = false, $__is_deprecation__ = false, ...$__varargs__)
{
$context = $this->env->mergeGlobals([
"logs" => $__logs__,
"category" => $__category__,
"show_level" => $__show_level__,
"is_deprecation" => $__is_deprecation__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
// line 183
echo " ";
$context["helper"] = $this;
// line 184
echo " ";
$context["channel_is_defined"] = $this->getAttribute(twig_first($this->env, ($context["logs"] ?? $this->getContext($context, "logs"))), "channel", [], "any", true, true);
// line 185
echo "
<table class=\"logs\">
<thead>
<tr>
<th>";
// line 189
echo ((($context["show_level"] ?? $this->getContext($context, "show_level"))) ? ("Level") : ("Time"));
echo "</th>
";
// line 190
if (($context["channel_is_defined"] ?? $this->getContext($context, "channel_is_defined"))) {
echo "<th>Channel</th>";
}
// line 191
echo " <th class=\"full-width\">Message</th>
</tr>
</thead>
<tbody>
";
// line 196
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["logs"] ?? $this->getContext($context, "logs")));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
// line 197
echo " ";
$context["css_class"] = ((($context["is_deprecation"] ?? $this->getContext($context, "is_deprecation"))) ? ("") : (((twig_in_filter($this->getAttribute( // line 198
$context["log"], "priorityName", []), [0 => "CRITICAL", 1 => "ERROR", 2 => "ALERT", 3 => "EMERGENCY"])) ? ("status-error") : (((($this->getAttribute( // line 199
$context["log"], "priorityName", []) == "WARNING")) ? ("status-warning") : (""))))));
// line 201
echo " <tr class=\"";
echo twig_escape_filter($this->env, ($context["css_class"] ?? $this->getContext($context, "css_class")), "html", null, true);
echo "\">
<td class=\"font-normal text-small\" nowrap>
";
// line 203
if (($context["show_level"] ?? $this->getContext($context, "show_level"))) {
// line 204
echo " <span class=\"colored text-bold\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", []), "html", null, true);
echo "</span>
";
}
// line 206
echo " <span class=\"text-muted newline\">";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["log"], "timestamp", []), "H:i:s"), "html", null, true);
echo "</span>
</td>
";
// line 209
if (($context["channel_is_defined"] ?? $this->getContext($context, "channel_is_defined"))) {
// line 210
echo " <td class=\"font-normal text-small text-bold\" nowrap>
";
// line 211
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "channel", []), "html", null, true);
echo "
";
// line 212
if (($this->getAttribute($context["log"], "errorCount", [], "any", true, true) && ($this->getAttribute($context["log"], "errorCount", []) > 1))) {
// line 213
echo " <span class=\"text-muted\">(";
echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "errorCount", []), "html", null, true);
echo " times)</span>
";
}
// line 215
echo " </td>
";
}
// line 218
echo "
<td class=\"font-normal\">";
// line 219
echo $context["helper"]->getrender_log_message(($context["category"] ?? $this->getContext($context, "category")), $this->getAttribute($context["loop"], "index", []), $context["log"]);
echo "</td>
</tr>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 222
echo " </tbody>
</table>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
} catch (\Exception $e) {
ob_end_clean();
throw $e;
} catch (\Throwable $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
}
// line 226
public function getrender_log_message($__category__ = null, $__log_index__ = null, $__log__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals([
"category" => $__category__,
"log_index" => $__log_index__,
"log" => $__log__,
"varargs" => $__varargs__,
]);
$blocks = [];
ob_start();
try {
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message"));
// line 227
echo " ";
$context["has_context"] = ($this->getAttribute(($context["log"] ?? null), "context", [], "any", true, true) && !twig_test_empty($this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "context", [])));
// line 228
echo " ";
$context["has_trace"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["log"] ?? null), "context", [], "any", false, true), "exception", [], "any", false, true), "trace", [], "any", true, true);
// line 229
echo "
";
// line 230
if ( !($context["has_context"] ?? $this->getContext($context, "has_context"))) {
// line 231
echo " ";
echo $this->env->getExtension('Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension')->dumpLog($this->env, $this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "message", []));
echo "
";
} else {
// line 233
echo " ";
echo $this->env->getExtension('Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension')->dumpLog($this->env, $this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "message", []), $this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "context", []));
echo "
<div class=\"text-small font-normal\">
";
// line 236
$context["context_id"] = ((("context-" . ($context["category"] ?? $this->getContext($context, "category"))) . "-") . ($context["log_index"] ?? $this->getContext($context, "log_index")));
// line 237
echo " <a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#";
echo twig_escape_filter($this->env, ($context["context_id"] ?? $this->getContext($context, "context_id")), "html", null, true);
echo "\" data-toggle-alt-content=\"Hide context\">Show context</a>
";
// line 239
if (($context["has_trace"] ?? $this->getContext($context, "has_trace"))) {
// line 240
echo " &nbsp;&nbsp;
";
// line 241
$context["trace_id"] = ((("trace-" . ($context["category"] ?? $this->getContext($context, "category"))) . "-") . ($context["log_index"] ?? $this->getContext($context, "log_index")));
// line 242
echo " <a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#";
echo twig_escape_filter($this->env, ($context["trace_id"] ?? $this->getContext($context, "trace_id")), "html", null, true);
echo "\" data-toggle-alt-content=\"Hide trace\">Show trace</a>
";
}
// line 244
echo " </div>
<div id=\"";
// line 246
echo twig_escape_filter($this->env, ($context["context_id"] ?? $this->getContext($context, "context_id")), "html", null, true);
echo "\" class=\"context sf-toggle-content sf-toggle-hidden\">
";
// line 247
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$this->env, $this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "context", []), 1]);
echo "
</div>
";
// line 250
if (($context["has_trace"] ?? $this->getContext($context, "has_trace"))) {
// line 251
echo " <div id=\"";
echo twig_escape_filter($this->env, ($context["trace_id"] ?? $this->getContext($context, "trace_id")), "html", null, true);
echo "\" class=\"context sf-toggle-content sf-toggle-hidden\">
";
// line 252
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["log"] ?? $this->getContext($context, "log")), "context", []), "exception", []), "trace", []), 1]);
echo "
</div>
";
}
// line 255
echo " ";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
} catch (\Exception $e) {
ob_end_clean();
throw $e;
} catch (\Throwable $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
}
public function getTemplateName()
{
return "@WebProfiler/Collector/logger.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 749 => 255, 743 => 252, 738 => 251, 736 => 250, 730 => 247, 726 => 246, 722 => 244, 716 => 242, 714 => 241, 711 => 240, 709 => 239, 703 => 237, 701 => 236, 694 => 233, 688 => 231, 686 => 230, 683 => 229, 680 => 228, 677 => 227, 657 => 226, 634 => 222, 617 => 219, 614 => 218, 609 => 215, 603 => 213, 601 => 212, 597 => 211, 594 => 210, 592 => 209, 585 => 206, 579 => 204, 577 => 203, 571 => 201, 569 => 199, 568 => 198, 566 => 197, 549 => 196, 542 => 191, 538 => 190, 534 => 189, 528 => 185, 525 => 184, 522 => 183, 501 => 182, 486 => 175, 481 => 172, 464 => 169, 459 => 166, 450 => 164, 446 => 163, 441 => 161, 432 => 159, 429 => 158, 427 => 157, 423 => 155, 406 => 154, 395 => 145, 389 => 141, 387 => 140, 380 => 136, 377 => 135, 371 => 134, 368 => 133, 363 => 132, 361 => 131, 356 => 128, 350 => 126, 344 => 122, 342 => 121, 335 => 117, 329 => 113, 323 => 111, 317 => 107, 315 => 106, 308 => 102, 302 => 98, 296 => 96, 290 => 92, 288 => 91, 278 => 87, 272 => 81, 266 => 79, 260 => 75, 258 => 74, 249 => 70, 244 => 67, 238 => 66, 235 => 65, 232 => 64, 229 => 63, 226 => 62, 223 => 61, 220 => 60, 217 => 59, 214 => 58, 211 => 57, 206 => 56, 203 => 55, 201 => 54, 195 => 50, 193 => 49, 189 => 47, 180 => 46, 169 => 43, 163 => 40, 160 => 39, 158 => 38, 153 => 36, 146 => 35, 137 => 34, 124 => 30, 121 => 29, 113 => 26, 103 => 21, 93 => 16, 89 => 14, 87 => 13, 84 => 12, 79 => 10, 74 => 9, 71 => 8, 68 => 7, 65 => 6, 56 => 5, 46 => 1, 44 => 3, 22 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.counterrors or collector.countdeprecations or collector.countwarnings %}
{% set icon %}
{% set status_color = collector.counterrors ? 'red' : 'yellow' %}
{{ include('@WebProfiler/Icon/logger.svg') }}
<span class=\"sf-toolbar-value\">{{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }}</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Errors</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.counterrors ? 'red' }}\">{{ collector.counterrors|default(0) }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Warnings</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countwarnings ? 'yellow' }}\">{{ collector.countwarnings|default(0) }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Deprecations</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countdeprecations ? 'yellow' }}\">{{ collector.countdeprecations|default(0) }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label label-status-{{ collector.counterrors ? 'error' : collector.countdeprecations or collector.countwarnings ? 'warning' }} {{ collector.logs is empty ? 'disabled' }}\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/logger.svg') }}</span>
<strong>Logs</strong>
{% if collector.counterrors or collector.countdeprecations or collector.countwarnings %}
<span class=\"count\">
<span>{{ collector.counterrors ?: (collector.countdeprecations + collector.countwarnings) }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
<h2>Log Messages</h2>
{% if collector.logs is empty %}
<div class=\"empty\">
<p>No log messages available.</p>
</div>
{% else %}
{# sort collected logs in groups #}
{% set deprecation_logs, debug_logs, info_and_error_logs, silenced_logs = [], [], [], [] %}
{% for log in collector.logs %}
{% if log.scream is defined and not log.scream %}
{% set deprecation_logs = deprecation_logs|merge([log]) %}
{% elseif log.scream is defined and log.scream %}
{% set silenced_logs = silenced_logs|merge([log]) %}
{% elseif log.priorityName == 'DEBUG' %}
{% set debug_logs = debug_logs|merge([log]) %}
{% else %}
{% set info_and_error_logs = info_and_error_logs|merge([log]) %}
{% endif %}
{% endfor %}
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Info. &amp; Errors <span class=\"badge status-{{ collector.counterrors ? 'error' : collector.countwarnings ? 'warning' }}\">{{ collector.counterrors ?: info_and_error_logs|length }}</span></h3>
<p class=\"text-muted\">Informational and error log messages generated during the execution of the application.</p>
<div class=\"tab-content\">
{% if info_and_error_logs is empty %}
<div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
{% else %}
{{ helper.render_table(info_and_error_logs, 'info', true) }}
{% endif %}
</div>
</div>
<div class=\"tab\">
{# 'deprecation_logs|length' is not used because deprecations are
now grouped and the group count doesn't match the message count #}
<h3 class=\"tab-title\">Deprecations <span class=\"badge status-{{ collector.countdeprecations ? 'warning' }}\">{{ collector.countdeprecations|default(0) }}</span></h3>
<p class=\"text-muted\">Log messages generated by using features marked as deprecated.</p>
<div class=\"tab-content\">
{% if deprecation_logs is empty %}
<div class=\"empty\">
<p>There are no log messages about deprecated features.</p>
</div>
{% else %}
{{ helper.render_table(deprecation_logs, 'deprecation', false, true) }}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Debug <span class=\"badge\">{{ debug_logs|length }}</span></h3>
<p class=\"text-muted\">Unimportant log messages generated during the execution of the application.</p>
<div class=\"tab-content\">
{% if debug_logs is empty %}
<div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
{% else %}
{{ helper.render_table(debug_logs, 'debug') }}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">PHP Notices <span class=\"badge\">{{ collector.countscreams|default(0) }}</span></h3>
<p class=\"text-muted\">Log messages generated by PHP notices silenced with the @ operator.</p>
<div class=\"tab-content\">
{% if silenced_logs is empty %}
<div class=\"empty\">
<p>There are no log messages of this level.</p>
</div>
{% else %}
{{ helper.render_table(silenced_logs, 'silenced') }}
{% endif %}
</div>
</div>
{% set compilerLogTotal = 0 %}
{% for logs in collector.compilerLogs %}
{% set compilerLogTotal = compilerLogTotal + logs|length %}
{% endfor %}
<div class=\"tab\">
<h3 class=\"tab-title\">Container <span class=\"badge\">{{ compilerLogTotal }}</span></h3>
<p class=\"text-muted\">Log messages generated during the compilation of the service container.</p>
<div class=\"tab-content\">
{% if collector.compilerLogs is empty %}
<div class=\"empty\">
<p>There are no compiler log messages.</p>
</div>
{% else %}
<table class=\"logs\">
<thead>
<tr>
<th class=\"full-width\">Class</th>
<th>Messages</th>
</tr>
</thead>
<tbody>
{% for class, logs in collector.compilerLogs %}
<tr class=\"\">
<td class=\"font-normal\">
{% set context_id = 'context-compiler-' ~ loop.index %}
<a class=\"btn btn-link sf-toggle\" data-toggle-selector=\"#{{ context_id }}\" data-toggle-alt-content=\"{{ class }}\">{{ class }}</a>
<div id=\"{{ context_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
<ul>
{% for log in logs %}
<li>{{ profiler_dump_log(log.message) }}</li>
{% endfor %}
</ul>
</div>
</td>
<td class=\"font-normal text-right\">{{ logs|length }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% macro render_table(logs, category = '', show_level = false, is_deprecation = false) %}
{% import _self as helper %}
{% set channel_is_defined = (logs|first).channel is defined %}
<table class=\"logs\">
<thead>
<tr>
<th>{{ show_level ? 'Level' : 'Time' }}</th>
{% if channel_is_defined %}<th>Channel</th>{% endif %}
<th class=\"full-width\">Message</th>
</tr>
</thead>
<tbody>
{% for log in logs %}
{% set css_class = is_deprecation ? ''
: log.priorityName in ['CRITICAL', 'ERROR', 'ALERT', 'EMERGENCY'] ? 'status-error'
: log.priorityName == 'WARNING' ? 'status-warning'
%}
<tr class=\"{{ css_class }}\">
<td class=\"font-normal text-small\" nowrap>
{% if show_level %}
<span class=\"colored text-bold\">{{ log.priorityName }}</span>
{% endif %}
<span class=\"text-muted newline\">{{ log.timestamp|date('H:i:s') }}</span>
</td>
{% if channel_is_defined %}
<td class=\"font-normal text-small text-bold\" nowrap>
{{ log.channel }}
{% if log.errorCount is defined and log.errorCount > 1 %}
<span class=\"text-muted\">({{ log.errorCount }} times)</span>
{% endif %}
</td>
{% endif %}
<td class=\"font-normal\">{{ helper.render_log_message(category, loop.index, log) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
{% macro render_log_message(category, log_index, log) %}
{% set has_context = log.context is defined and log.context is not empty %}
{% set has_trace = log.context.exception.trace is defined %}
{% if not has_context %}
{{ profiler_dump_log(log.message) }}
{% else %}
{{ profiler_dump_log(log.message, log.context) }}
<div class=\"text-small font-normal\">
{% set context_id = 'context-' ~ category ~ '-' ~ log_index %}
<a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ context_id }}\" data-toggle-alt-content=\"Hide context\">Show context</a>
{% if has_trace %}
&nbsp;&nbsp;
{% set trace_id = 'trace-' ~ category ~ '-' ~ log_index %}
<a class=\"btn btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ trace_id }}\" data-toggle-alt-content=\"Hide trace\">Show trace</a>
{% endif %}
</div>
<div id=\"{{ context_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
{{ profiler_dump(log.context, maxDepth=1) }}
</div>
{% if has_trace %}
<div id=\"{{ trace_id }}\" class=\"context sf-toggle-content sf-toggle-hidden\">
{{ profiler_dump(log.context.exception.trace, maxDepth=1) }}
</div>
{% endif %}
{% endif %}
{% endmacro %}
", "@WebProfiler/Collector/logger.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig");
}
}