init without trunk
This commit is contained in:
parent
ed24ac4994
commit
bb809e7233
14652 changed files with 177862 additions and 94817 deletions
937
var/cache/dev/twig/08/083bbae44371fd6f080e7d308c752507e96ee226f49e5d3689b19efbfecae0ae.php
vendored
Normal file
937
var/cache/dev/twig/08/083bbae44371fd6f080e7d308c752507e96ee226f49e5d3689b19efbfecae0ae.php
vendored
Normal file
|
|
@ -0,0 +1,937 @@
|
|||
<?php
|
||||
|
||||
use Twig\Environment;
|
||||
use Twig\Error\LoaderError;
|
||||
use Twig\Error\RuntimeError;
|
||||
use Twig\Extension\SandboxExtension;
|
||||
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_3ce614d334c76bb522c3ec01b6c159fcb6266df9c3c1bbbb0d08bfa6bff54bb9 extends \Twig\Template
|
||||
{
|
||||
private $source;
|
||||
private $macros = [];
|
||||
|
||||
public function __construct(Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->source = $this->getSourceContext();
|
||||
|
||||
$this->blocks = [
|
||||
'toolbar' => [$this, 'block_toolbar'],
|
||||
'menu' => [$this, 'block_menu'],
|
||||
'panel' => [$this, 'block_panel'],
|
||||
];
|
||||
}
|
||||
|
||||
protected function doGetParent(array $context)
|
||||
{
|
||||
// line 1
|
||||
return "@WebProfiler/Profiler/layout.html.twig";
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["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
|
||||
$macros["helper"] = $this->macros["helper"] = $this;
|
||||
// line 1
|
||||
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/logger.html.twig", 1);
|
||||
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 5
|
||||
public function block_toolbar($context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
|
||||
|
||||
// line 6
|
||||
echo " ";
|
||||
if (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "counterrors", [], "any", false, false, false, 6) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countdeprecations", [], "any", false, false, false, 6)) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "countscreams", [], "any", false, false, false, 6))) {
|
||||
// line 7
|
||||
echo " ";
|
||||
ob_start();
|
||||
// line 8
|
||||
echo " ";
|
||||
$context["status_color"] = ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "counterrors", [], "any", false, false, false, 8)) ? ("red") : (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 8, $this->source); })()), "countdeprecations", [], "any", false, false, false, 8)) ? ("yellow") : (""))));
|
||||
// line 9
|
||||
echo " ";
|
||||
$context["error_count"] = ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "counterrors", [], "any", false, false, false, 9) + twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countdeprecations", [], "any", false, false, false, 9)) + twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "countscreams", [], "any", false, false, false, 9));
|
||||
// line 10
|
||||
echo " ";
|
||||
echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg");
|
||||
echo "
|
||||
<span class=\"sf-toolbar-value\">";
|
||||
// line 11
|
||||
echo twig_escape_filter($this->env, (isset($context["error_count"]) || array_key_exists("error_count", $context) ? $context["error_count"] : (function () { throw new RuntimeError('Variable "error_count" does not exist.', 11, $this->source); })()), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 13
|
||||
echo "
|
||||
";
|
||||
// line 14
|
||||
ob_start();
|
||||
// line 15
|
||||
echo " <div class=\"sf-toolbar-info-piece\">
|
||||
<b>Errors</b>
|
||||
<span class=\"sf-toolbar-status sf-toolbar-status-";
|
||||
// line 17
|
||||
echo ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 17, $this->source); })()), "counterrors", [], "any", false, false, false, 17)) ? ("red") : (""));
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", true, true, false, 17)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "counterrors", [], "any", false, false, false, 17), 0)) : (0)), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
|
||||
<div class=\"sf-toolbar-info-piece\">
|
||||
<b>Deprecated Calls</b>
|
||||
<span class=\"sf-toolbar-status sf-toolbar-status-";
|
||||
// line 22
|
||||
echo ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 22, $this->source); })()), "countdeprecations", [], "any", false, false, false, 22)) ? ("yellow") : (""));
|
||||
echo "\">";
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 22)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", false, false, false, 22), 0)) : (0)), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
|
||||
<div class=\"sf-toolbar-info-piece\">
|
||||
<b>Silenced Errors</b>
|
||||
<span class=\"sf-toolbar-status\">";
|
||||
// line 27
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", true, true, false, 27)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", false, false, false, 27), 0)) : (0)), "html", null, true);
|
||||
echo "</span>
|
||||
</div>
|
||||
";
|
||||
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
// line 30
|
||||
echo "
|
||||
";
|
||||
// line 31
|
||||
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 31, $this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color", $context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.', 31, $this->source); })())]);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 35
|
||||
public function block_menu($context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
||||
|
||||
// line 36
|
||||
echo " <span class=\"label label-status-";
|
||||
echo ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "counterrors", [], "any", false, false, false, 36)) ? ("error") : (((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "countdeprecations", [], "any", false, false, false, 36)) ? ("warning") : (""))));
|
||||
echo " ";
|
||||
echo ((twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "logs", [], "any", false, false, false, 36))) ? ("disabled") : (""));
|
||||
echo "\">
|
||||
<span class=\"icon\">";
|
||||
// line 37
|
||||
echo twig_include($this->env, $context, "@WebProfiler/Icon/logger.svg");
|
||||
echo "</span>
|
||||
<strong>Logs</strong>
|
||||
";
|
||||
// line 39
|
||||
if ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 39, $this->source); })()), "counterrors", [], "any", false, false, false, 39) || twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 39, $this->source); })()), "countdeprecations", [], "any", false, false, false, 39))) {
|
||||
// line 40
|
||||
echo " <span class=\"count\">
|
||||
<span>";
|
||||
// line 41
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "counterrors", [], "any", false, false, false, 41)) ? (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "counterrors", [], "any", false, false, false, 41)) : (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 41, $this->source); })()), "countdeprecations", [], "any", false, false, false, 41))), "html", null, true);
|
||||
echo "</span>
|
||||
</span>
|
||||
";
|
||||
}
|
||||
// line 44
|
||||
echo " </span>
|
||||
";
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 47
|
||||
public function block_panel($context, array $blocks = [])
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
||||
|
||||
// line 48
|
||||
echo " <h2>Log Messages</h2>
|
||||
|
||||
";
|
||||
// line 50
|
||||
if (twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 50, $this->source); })()), "logs", [], "any", false, false, false, 50))) {
|
||||
// line 51
|
||||
echo " <div class=\"empty\">
|
||||
<p>No log messages available.</p>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 55
|
||||
echo " ";
|
||||
// line 56
|
||||
echo " ";
|
||||
list($context["deprecation_logs"], $context["debug_logs"], $context["info_and_error_logs"], $context["silenced_logs"]) = [[], [], [], []];
|
||||
// line 57
|
||||
echo " ";
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 57, $this->source); })()), "logs", [], "any", false, false, false, 57));
|
||||
foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
|
||||
// line 58
|
||||
echo " ";
|
||||
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 58), "level", [], "any", true, true, false, 58) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 58), "type", [], "any", true, true, false, 58)) && twig_in_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, false, false, 58), "type", [], "any", false, false, false, 58), [0 => twig_constant("E_DEPRECATED"), 1 => twig_constant("E_USER_DEPRECATED")]))) {
|
||||
// line 59
|
||||
echo " ";
|
||||
$context["deprecation_logs"] = twig_array_merge((isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 59, $this->source); })()), [0 => $context["log"]]);
|
||||
// line 60
|
||||
echo " ";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, true, false, 60), "scream", [], "any", true, true, false, 60) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["log"], "context", [], "any", false, false, false, 60), "scream", [], "any", false, false, false, 60) == true))) {
|
||||
// line 61
|
||||
echo " ";
|
||||
$context["silenced_logs"] = twig_array_merge((isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 61, $this->source); })()), [0 => $context["log"]]);
|
||||
// line 62
|
||||
echo " ";
|
||||
} elseif ((twig_get_attribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 62) == "DEBUG")) {
|
||||
// line 63
|
||||
echo " ";
|
||||
$context["debug_logs"] = twig_array_merge((isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 63, $this->source); })()), [0 => $context["log"]]);
|
||||
// line 64
|
||||
echo " ";
|
||||
} else {
|
||||
// line 65
|
||||
echo " ";
|
||||
$context["info_and_error_logs"] = twig_array_merge((isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 65, $this->source); })()), [0 => $context["log"]]);
|
||||
// line 66
|
||||
echo " ";
|
||||
}
|
||||
// line 67
|
||||
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 68
|
||||
echo "
|
||||
<div class=\"sf-tabs\">
|
||||
<div class=\"tab\">
|
||||
<h3 class=\"tab-title\">Info. & Errors <span class=\"badge\">";
|
||||
// line 71
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 71, $this->source); })())), "html", null, true);
|
||||
echo "</span></h3>
|
||||
|
||||
<div class=\"tab-content\">
|
||||
";
|
||||
// line 74
|
||||
if (twig_test_empty((isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 74, $this->source); })()))) {
|
||||
// line 75
|
||||
echo " <div class=\"empty\">
|
||||
<p>There are no log messages of this level.</p>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 79
|
||||
echo " ";
|
||||
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["info_and_error_logs"]) || array_key_exists("info_and_error_logs", $context) ? $context["info_and_error_logs"] : (function () { throw new RuntimeError('Variable "info_and_error_logs" does not exist.', 79, $this->source); })()), "info", true], 79, $context, $this->getSourceContext());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 81
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
<div class=\"tab\">
|
||||
";
|
||||
// line 87
|
||||
echo " <h3 class=\"tab-title\">Deprecations <span class=\"badge\">";
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", true, true, false, 87)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countdeprecations", [], "any", false, false, false, 87), 0)) : (0)), "html", null, true);
|
||||
echo "</span></h3>
|
||||
|
||||
<div class=\"tab-content\">
|
||||
";
|
||||
// line 90
|
||||
if (twig_test_empty((isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 90, $this->source); })()))) {
|
||||
// line 91
|
||||
echo " <div class=\"empty\">
|
||||
<p>There are no log messages about deprecated features.</p>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 95
|
||||
echo " ";
|
||||
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["deprecation_logs"]) || array_key_exists("deprecation_logs", $context) ? $context["deprecation_logs"] : (function () { throw new RuntimeError('Variable "deprecation_logs" does not exist.', 95, $this->source); })()), "deprecation", false, true], 95, $context, $this->getSourceContext());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 97
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
<div class=\"tab\">
|
||||
<h3 class=\"tab-title\">Debug <span class=\"badge\">";
|
||||
// line 101
|
||||
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 101, $this->source); })())), "html", null, true);
|
||||
echo "</span></h3>
|
||||
|
||||
<div class=\"tab-content\">
|
||||
";
|
||||
// line 104
|
||||
if (twig_test_empty((isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 104, $this->source); })()))) {
|
||||
// line 105
|
||||
echo " <div class=\"empty\">
|
||||
<p>There are no log messages of this level.</p>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 109
|
||||
echo " ";
|
||||
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["debug_logs"]) || array_key_exists("debug_logs", $context) ? $context["debug_logs"] : (function () { throw new RuntimeError('Variable "debug_logs" does not exist.', 109, $this->source); })()), "debug"], 109, $context, $this->getSourceContext());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 111
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
<div class=\"tab\">
|
||||
<h3 class=\"tab-title\">Silenced Errors <span class=\"badge\">";
|
||||
// line 115
|
||||
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", true, true, false, 115)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "countscreams", [], "any", false, false, false, 115), 0)) : (0)), "html", null, true);
|
||||
echo "</span></h3>
|
||||
|
||||
<div class=\"tab-content\">
|
||||
";
|
||||
// line 118
|
||||
if (twig_test_empty((isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 118, $this->source); })()))) {
|
||||
// line 119
|
||||
echo " <div class=\"empty\">
|
||||
<p>There are no log messages of this level.</p>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 123
|
||||
echo " ";
|
||||
echo twig_call_macro($macros["helper"], "macro_render_table", [(isset($context["silenced_logs"]) || array_key_exists("silenced_logs", $context) ? $context["silenced_logs"] : (function () { throw new RuntimeError('Variable "silenced_logs" does not exist.', 123, $this->source); })()), "silenced"], 123, $context, $this->getSourceContext());
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 125
|
||||
echo " </div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
}
|
||||
|
||||
// line 132
|
||||
public function macro_render_table($__logs__ = null, $__category__ = "", $__show_level__ = false, $__is_deprecation__ = false, ...$__varargs__)
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$context = $this->env->mergeGlobals([
|
||||
"logs" => $__logs__,
|
||||
"category" => $__category__,
|
||||
"show_level" => $__show_level__,
|
||||
"is_deprecation" => $__is_deprecation__,
|
||||
"varargs" => $__varargs__,
|
||||
]);
|
||||
|
||||
$blocks = [];
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_table"));
|
||||
|
||||
// line 133
|
||||
echo " ";
|
||||
$macros["helper"] = $this;
|
||||
// line 134
|
||||
echo " ";
|
||||
$context["channel_is_defined"] = twig_get_attribute($this->env, $this->source, twig_first($this->env, (isset($context["logs"]) || array_key_exists("logs", $context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.', 134, $this->source); })())), "channel", [], "any", true, true, false, 134);
|
||||
// line 135
|
||||
echo "
|
||||
<table class=\"logs\">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>";
|
||||
// line 139
|
||||
echo (((isset($context["show_level"]) || array_key_exists("show_level", $context) ? $context["show_level"] : (function () { throw new RuntimeError('Variable "show_level" does not exist.', 139, $this->source); })())) ? ("Level") : ("Time"));
|
||||
echo "</th>
|
||||
";
|
||||
// line 140
|
||||
if ((isset($context["channel_is_defined"]) || array_key_exists("channel_is_defined", $context) ? $context["channel_is_defined"] : (function () { throw new RuntimeError('Variable "channel_is_defined" does not exist.', 140, $this->source); })())) {
|
||||
echo "<th>Channel</th>";
|
||||
}
|
||||
// line 141
|
||||
echo " <th>Message</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
";
|
||||
// line 146
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable((isset($context["logs"]) || array_key_exists("logs", $context) ? $context["logs"] : (function () { throw new RuntimeError('Variable "logs" does not exist.', 146, $this->source); })()));
|
||||
$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 147
|
||||
echo " ";
|
||||
$context["css_class"] = (((isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 147, $this->source); })())) ? ("") : (((twig_in_filter(twig_get_attribute($this->env, $this->source, // line 148
|
||||
$context["log"], "priorityName", [], "any", false, false, false, 148), [0 => "CRITICAL", 1 => "ERROR", 2 => "ALERT", 3 => "EMERGENCY"])) ? ("status-error") : (((twig_in_filter(twig_get_attribute($this->env, $this->source, // line 149
|
||||
$context["log"], "priorityName", [], "any", false, false, false, 149), [0 => "NOTICE", 1 => "WARNING"])) ? ("status-warning") : (""))))));
|
||||
// line 151
|
||||
echo " <tr class=\"";
|
||||
echo twig_escape_filter($this->env, (isset($context["css_class"]) || array_key_exists("css_class", $context) ? $context["css_class"] : (function () { throw new RuntimeError('Variable "css_class" does not exist.', 151, $this->source); })()), "html", null, true);
|
||||
echo "\">
|
||||
<td class=\"font-normal text-small\">
|
||||
";
|
||||
// line 153
|
||||
if ((isset($context["show_level"]) || array_key_exists("show_level", $context) ? $context["show_level"] : (function () { throw new RuntimeError('Variable "show_level" does not exist.', 153, $this->source); })())) {
|
||||
// line 154
|
||||
echo " <span class=\"colored text-bold nowrap\">";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "priorityName", [], "any", false, false, false, 154), "html", null, true);
|
||||
echo "</span>
|
||||
";
|
||||
}
|
||||
// line 156
|
||||
echo " <span class=\"text-muted nowrap newline\">";
|
||||
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "timestamp", [], "any", false, false, false, 156), "H:i:s"), "html", null, true);
|
||||
echo "</span>
|
||||
</td>
|
||||
|
||||
";
|
||||
// line 159
|
||||
if ((isset($context["channel_is_defined"]) || array_key_exists("channel_is_defined", $context) ? $context["channel_is_defined"] : (function () { throw new RuntimeError('Variable "channel_is_defined" does not exist.', 159, $this->source); })())) {
|
||||
// line 160
|
||||
echo " <td class=\"font-normal text-small text-bold nowrap\">";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["log"], "channel", [], "any", false, false, false, 160), "html", null, true);
|
||||
echo "</td>
|
||||
";
|
||||
}
|
||||
// line 162
|
||||
echo "
|
||||
<td class=\"font-normal\">";
|
||||
// line 163
|
||||
echo twig_call_macro($macros["helper"], "macro_render_log_message", [(isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 163, $this->source); })()), twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 163), $context["log"], (isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 163, $this->source); })())], 163, $context, $this->getSourceContext());
|
||||
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 166
|
||||
echo " </tbody>
|
||||
</table>
|
||||
";
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
|
||||
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
} finally {
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
|
||||
// line 170
|
||||
public function macro_render_log_message($__category__ = null, $__log_index__ = null, $__log__ = null, $__is_deprecation__ = false, ...$__varargs__)
|
||||
{
|
||||
$macros = $this->macros;
|
||||
$context = $this->env->mergeGlobals([
|
||||
"category" => $__category__,
|
||||
"log_index" => $__log_index__,
|
||||
"log" => $__log__,
|
||||
"is_deprecation" => $__is_deprecation__,
|
||||
"varargs" => $__varargs__,
|
||||
]);
|
||||
|
||||
$blocks = [];
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_log_message"));
|
||||
|
||||
// line 171
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 171, $this->source); })()), "message", [], "any", false, false, false, 171), "html", null, true);
|
||||
echo "
|
||||
|
||||
";
|
||||
// line 173
|
||||
if ((isset($context["is_deprecation"]) || array_key_exists("is_deprecation", $context) ? $context["is_deprecation"] : (function () { throw new RuntimeError('Variable "is_deprecation" does not exist.', 173, $this->source); })())) {
|
||||
// line 174
|
||||
echo " ";
|
||||
$context["stack"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 174), "stack", [], "any", true, true, false, 174)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 174), "stack", [], "any", false, false, false, 174), [])) : ([]));
|
||||
// line 175
|
||||
echo " ";
|
||||
$context["stack_id"] = ((("sf-call-stack-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 175, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 175, $this->source); })()));
|
||||
// line 176
|
||||
echo "
|
||||
";
|
||||
// line 177
|
||||
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", false, true, false, 177), "errorCount", [], "any", true, true, false, 177)) {
|
||||
// line 178
|
||||
echo " <span class=\"text-small text-bold\">(";
|
||||
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 178, $this->source); })()), "context", [], "any", false, false, false, 178), "errorCount", [], "any", false, false, false, 178), "html", null, true);
|
||||
echo " times)</span>
|
||||
";
|
||||
}
|
||||
// line 180
|
||||
echo "
|
||||
";
|
||||
// line 181
|
||||
if ((isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 181, $this->source); })())) {
|
||||
// line 182
|
||||
echo " <button class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#";
|
||||
echo twig_escape_filter($this->env, (isset($context["stack_id"]) || array_key_exists("stack_id", $context) ? $context["stack_id"] : (function () { throw new RuntimeError('Variable "stack_id" does not exist.', 182, $this->source); })()), "html", null, true);
|
||||
echo "\" data-toggle-alt-content=\"Hide stack trace\">Show stack trace</button>
|
||||
";
|
||||
}
|
||||
// line 184
|
||||
echo "
|
||||
";
|
||||
// line 185
|
||||
$context['_parent'] = $context;
|
||||
$context['_seq'] = twig_ensure_traversable((isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 185, $this->source); })()));
|
||||
foreach ($context['_seq'] as $context["index"] => $context["call"]) {
|
||||
if (($context["index"] > 1)) {
|
||||
// line 186
|
||||
echo " ";
|
||||
if (($context["index"] == 2)) {
|
||||
// line 187
|
||||
echo " <ul class=\"sf-call-stack hidden\" id=\"";
|
||||
echo twig_escape_filter($this->env, (isset($context["stack_id"]) || array_key_exists("stack_id", $context) ? $context["stack_id"] : (function () { throw new RuntimeError('Variable "stack_id" does not exist.', 187, $this->source); })()), "html", null, true);
|
||||
echo "\">
|
||||
";
|
||||
}
|
||||
// line 189
|
||||
echo "
|
||||
";
|
||||
// line 190
|
||||
if (twig_get_attribute($this->env, $this->source, $context["call"], "class", [], "any", true, true, false, 190)) {
|
||||
// line 191
|
||||
echo " ";
|
||||
$context["from"] = (($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrClass(twig_get_attribute($this->env, $this->source, $context["call"], "class", [], "any", false, false, false, 191)) . "::") . $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrMethod(twig_get_attribute($this->env, $this->source, $context["call"], "function", [], "any", false, false, false, 191)));
|
||||
// line 192
|
||||
echo " ";
|
||||
} elseif (twig_get_attribute($this->env, $this->source, $context["call"], "function", [], "any", true, true, false, 192)) {
|
||||
// line 193
|
||||
echo " ";
|
||||
$context["from"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrMethod(twig_get_attribute($this->env, $this->source, $context["call"], "function", [], "any", false, false, false, 193));
|
||||
// line 194
|
||||
echo " ";
|
||||
} elseif (twig_get_attribute($this->env, $this->source, $context["call"], "file", [], "any", true, true, false, 194)) {
|
||||
// line 195
|
||||
echo " ";
|
||||
$context["from"] = twig_get_attribute($this->env, $this->source, $context["call"], "file", [], "any", false, false, false, 195);
|
||||
// line 196
|
||||
echo " ";
|
||||
} else {
|
||||
// line 197
|
||||
echo " ";
|
||||
$context["from"] = "-";
|
||||
// line 198
|
||||
echo " ";
|
||||
}
|
||||
// line 199
|
||||
echo "
|
||||
";
|
||||
// line 200
|
||||
$context["file_name"] = (((twig_get_attribute($this->env, $this->source, $context["call"], "file", [], "any", true, true, false, 200) && twig_get_attribute($this->env, $this->source, $context["call"], "line", [], "any", true, true, false, 200))) ? (twig_last($this->env, twig_split_filter($this->env, twig_replace_filter(twig_get_attribute($this->env, $this->source, $context["call"], "file", [], "any", false, false, false, 200), ["\\" => "/"]), "/"))) : (""));
|
||||
// line 201
|
||||
echo "
|
||||
<li>
|
||||
";
|
||||
// line 203
|
||||
echo (isset($context["from"]) || array_key_exists("from", $context) ? $context["from"] : (function () { throw new RuntimeError('Variable "from" does not exist.', 203, $this->source); })());
|
||||
echo "
|
||||
";
|
||||
// line 204
|
||||
if ((isset($context["file_name"]) || array_key_exists("file_name", $context) ? $context["file_name"] : (function () { throw new RuntimeError('Variable "file_name" does not exist.', 204, $this->source); })())) {
|
||||
// line 205
|
||||
echo " <span class=\"text-small\">(called from ";
|
||||
echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatFile(twig_get_attribute($this->env, $this->source, $context["call"], "file", [], "any", false, false, false, 205), twig_get_attribute($this->env, $this->source, $context["call"], "line", [], "any", false, false, false, 205), (isset($context["file_name"]) || array_key_exists("file_name", $context) ? $context["file_name"] : (function () { throw new RuntimeError('Variable "file_name" does not exist.', 205, $this->source); })()));
|
||||
echo ")</span>
|
||||
";
|
||||
}
|
||||
// line 207
|
||||
echo " </li>
|
||||
|
||||
";
|
||||
// line 209
|
||||
if (($context["index"] == (twig_length_filter($this->env, (isset($context["stack"]) || array_key_exists("stack", $context) ? $context["stack"] : (function () { throw new RuntimeError('Variable "stack" does not exist.', 209, $this->source); })())) - 1))) {
|
||||
// line 210
|
||||
echo " </ul>
|
||||
";
|
||||
}
|
||||
// line 212
|
||||
echo " ";
|
||||
}
|
||||
}
|
||||
$_parent = $context['_parent'];
|
||||
unset($context['_seq'], $context['_iterated'], $context['index'], $context['call'], $context['_parent'], $context['loop']);
|
||||
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||
// line 213
|
||||
echo " ";
|
||||
} else {
|
||||
// line 214
|
||||
echo " ";
|
||||
if ((twig_get_attribute($this->env, $this->source, ($context["log"] ?? null), "context", [], "any", true, true, false, 214) && !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 214, $this->source); })()), "context", [], "any", false, false, false, 214)))) {
|
||||
// line 215
|
||||
echo " ";
|
||||
$context["context_id"] = ((("context-" . (isset($context["category"]) || array_key_exists("category", $context) ? $context["category"] : (function () { throw new RuntimeError('Variable "category" does not exist.', 215, $this->source); })())) . "-") . (isset($context["log_index"]) || array_key_exists("log_index", $context) ? $context["log_index"] : (function () { throw new RuntimeError('Variable "log_index" does not exist.', 215, $this->source); })()));
|
||||
// line 216
|
||||
echo " ";
|
||||
$context["context_dump"] = $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpValue(twig_get_attribute($this->env, $this->source, (isset($context["log"]) || array_key_exists("log", $context) ? $context["log"] : (function () { throw new RuntimeError('Variable "log" does not exist.', 216, $this->source); })()), "context", [], "any", false, false, false, 216));
|
||||
// line 217
|
||||
echo "
|
||||
<div class=\"metadata\">
|
||||
<strong>Context</strong>:
|
||||
|
||||
";
|
||||
// line 221
|
||||
if ((twig_length_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 221, $this->source); })())) > 120)) {
|
||||
// line 222
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, twig_slice($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 222, $this->source); })()), 0, 120), "html", null, true);
|
||||
echo " ...
|
||||
|
||||
<a class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#";
|
||||
// line 224
|
||||
echo twig_escape_filter($this->env, (isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 224, $this->source); })()), "html", null, true);
|
||||
echo "\" data-toggle-alt-content=\"Hide full context\">Show full context</a>
|
||||
|
||||
<div id=\"";
|
||||
// line 226
|
||||
echo twig_escape_filter($this->env, (isset($context["context_id"]) || array_key_exists("context_id", $context) ? $context["context_id"] : (function () { throw new RuntimeError('Variable "context_id" does not exist.', 226, $this->source); })()), "html", null, true);
|
||||
echo "\" class=\"context\">
|
||||
<pre>";
|
||||
// line 227
|
||||
echo twig_escape_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 227, $this->source); })()), "html", null, true);
|
||||
echo "</pre>
|
||||
</div>
|
||||
";
|
||||
} else {
|
||||
// line 230
|
||||
echo " ";
|
||||
echo twig_escape_filter($this->env, (isset($context["context_dump"]) || array_key_exists("context_dump", $context) ? $context["context_dump"] : (function () { throw new RuntimeError('Variable "context_dump" does not exist.', 230, $this->source); })()), "html", null, true);
|
||||
echo "
|
||||
";
|
||||
}
|
||||
// line 232
|
||||
echo " </div>
|
||||
";
|
||||
}
|
||||
// line 234
|
||||
echo " ";
|
||||
}
|
||||
|
||||
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
||||
|
||||
|
||||
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
|
||||
} finally {
|
||||
ob_end_clean();
|
||||
}
|
||||
}
|
||||
|
||||
public function getTemplateName()
|
||||
{
|
||||
return "@WebProfiler/Collector/logger.html.twig";
|
||||
}
|
||||
|
||||
public function isTraitable()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getDebugInfo()
|
||||
{
|
||||
return array ( 671 => 234, 667 => 232, 661 => 230, 655 => 227, 651 => 226, 646 => 224, 640 => 222, 638 => 221, 632 => 217, 629 => 216, 626 => 215, 623 => 214, 620 => 213, 613 => 212, 609 => 210, 607 => 209, 603 => 207, 597 => 205, 595 => 204, 591 => 203, 587 => 201, 585 => 200, 582 => 199, 579 => 198, 576 => 197, 573 => 196, 570 => 195, 567 => 194, 564 => 193, 561 => 192, 558 => 191, 556 => 190, 553 => 189, 547 => 187, 544 => 186, 539 => 185, 536 => 184, 530 => 182, 528 => 181, 525 => 180, 519 => 178, 517 => 177, 514 => 176, 511 => 175, 508 => 174, 506 => 173, 500 => 171, 481 => 170, 467 => 166, 450 => 163, 447 => 162, 441 => 160, 439 => 159, 432 => 156, 426 => 154, 424 => 153, 418 => 151, 416 => 149, 415 => 148, 413 => 147, 396 => 146, 389 => 141, 385 => 140, 381 => 139, 375 => 135, 372 => 134, 369 => 133, 350 => 132, 338 => 125, 332 => 123, 326 => 119, 324 => 118, 318 => 115, 312 => 111, 306 => 109, 300 => 105, 298 => 104, 292 => 101, 286 => 97, 280 => 95, 274 => 91, 272 => 90, 265 => 87, 259 => 81, 253 => 79, 247 => 75, 245 => 74, 239 => 71, 234 => 68, 228 => 67, 225 => 66, 222 => 65, 219 => 64, 216 => 63, 213 => 62, 210 => 61, 207 => 60, 204 => 59, 201 => 58, 196 => 57, 193 => 56, 191 => 55, 185 => 51, 183 => 50, 179 => 48, 172 => 47, 164 => 44, 158 => 41, 155 => 40, 153 => 39, 148 => 37, 141 => 36, 134 => 35, 124 => 31, 121 => 30, 115 => 27, 105 => 22, 95 => 17, 91 => 15, 89 => 14, 86 => 13, 81 => 11, 76 => 10, 73 => 9, 70 => 8, 67 => 7, 64 => 6, 57 => 5, 49 => 1, 47 => 3, 37 => 1,);
|
||||
}
|
||||
|
||||
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.countscreams %}
|
||||
{% set icon %}
|
||||
{% set status_color = collector.counterrors ? 'red' : collector.countdeprecations ? 'yellow' : '' %}
|
||||
{% set error_count = collector.counterrors + collector.countdeprecations + collector.countscreams %}
|
||||
{{ include('@WebProfiler/Icon/logger.svg') }}
|
||||
<span class=\"sf-toolbar-value\">{{ error_count }}</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>Deprecated Calls</b>
|
||||
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countdeprecations ? 'yellow' }}\">{{ collector.countdeprecations|default(0) }}</span>
|
||||
</div>
|
||||
|
||||
<div class=\"sf-toolbar-info-piece\">
|
||||
<b>Silenced Errors</b>
|
||||
<span class=\"sf-toolbar-status\">{{ collector.countscreams|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 ? 'warning' }} {{ collector.logs is empty ? 'disabled' }}\">
|
||||
<span class=\"icon\">{{ include('@WebProfiler/Icon/logger.svg') }}</span>
|
||||
<strong>Logs</strong>
|
||||
{% if collector.counterrors or collector.countdeprecations %}
|
||||
<span class=\"count\">
|
||||
<span>{{ collector.counterrors ?: collector.countdeprecations }}</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.context.level is defined and log.context.type is defined and log.context.type in [constant('E_DEPRECATED'), constant('E_USER_DEPRECATED')] %}
|
||||
{% set deprecation_logs = deprecation_logs|merge([log]) %}
|
||||
{% elseif log.context.scream is defined and log.context.scream == true %}
|
||||
{% 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. & Errors <span class=\"badge\">{{ info_and_error_logs|length }}</span></h3>
|
||||
|
||||
<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\">{{ collector.countdeprecations|default(0) }}</span></h3>
|
||||
|
||||
<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>
|
||||
|
||||
<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\">Silenced Errors <span class=\"badge\">{{ collector.countscreams|default(0) }}</span></h3>
|
||||
|
||||
<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>
|
||||
|
||||
</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>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 in ['NOTICE', 'WARNING'] ? 'status-warning'
|
||||
%}
|
||||
<tr class=\"{{ css_class }}\">
|
||||
<td class=\"font-normal text-small\">
|
||||
{% if show_level %}
|
||||
<span class=\"colored text-bold nowrap\">{{ log.priorityName }}</span>
|
||||
{% endif %}
|
||||
<span class=\"text-muted nowrap newline\">{{ log.timestamp|date('H:i:s') }}</span>
|
||||
</td>
|
||||
|
||||
{% if channel_is_defined %}
|
||||
<td class=\"font-normal text-small text-bold nowrap\">{{ log.channel }}</td>
|
||||
{% endif %}
|
||||
|
||||
<td class=\"font-normal\">{{ helper.render_log_message(category, loop.index, log, is_deprecation) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro render_log_message(category, log_index, log, is_deprecation = false) %}
|
||||
{{ log.message }}
|
||||
|
||||
{% if is_deprecation %}
|
||||
{% set stack = log.context.stack|default([]) %}
|
||||
{% set stack_id = 'sf-call-stack-' ~ category ~ '-' ~ log_index %}
|
||||
|
||||
{% if log.context.errorCount is defined %}
|
||||
<span class=\"text-small text-bold\">({{ log.context.errorCount }} times)</span>
|
||||
{% endif %}
|
||||
|
||||
{% if stack %}
|
||||
<button class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ stack_id }}\" data-toggle-alt-content=\"Hide stack trace\">Show stack trace</button>
|
||||
{% endif %}
|
||||
|
||||
{% for index, call in stack if index > 1 %}
|
||||
{% if index == 2 %}
|
||||
<ul class=\"sf-call-stack hidden\" id=\"{{ stack_id }}\">
|
||||
{% endif %}
|
||||
|
||||
{% if call.class is defined %}
|
||||
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
|
||||
{% elseif call.function is defined %}
|
||||
{% set from = call.function|abbr_method %}
|
||||
{% elseif call.file is defined %}
|
||||
{% set from = call.file %}
|
||||
{% else %}
|
||||
{% set from = '-' %}
|
||||
{% endif %}
|
||||
|
||||
{% set file_name = (call.file is defined and call.line is defined) ? call.file|replace({'\\\\': '/'})|split('/')|last %}
|
||||
|
||||
<li>
|
||||
{{ from|raw }}
|
||||
{% if file_name %}
|
||||
<span class=\"text-small\">(called from {{ call.file|format_file(call.line, file_name)|raw }})</span>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% if index == stack|length - 1 %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% if log.context is defined and log.context is not empty %}
|
||||
{% set context_id = 'context-' ~ category ~ '-' ~ log_index %}
|
||||
{% set context_dump = profiler_dump(log.context) %}
|
||||
|
||||
<div class=\"metadata\">
|
||||
<strong>Context</strong>:
|
||||
|
||||
{% if context_dump|length > 120 %}
|
||||
{{ context_dump[:120] }} ...
|
||||
|
||||
<a class=\"btn-link text-small sf-toggle\" data-toggle-selector=\"#{{ context_id }}\" data-toggle-alt-content=\"Hide full context\">Show full context</a>
|
||||
|
||||
<div id=\"{{ context_id }}\" class=\"context\">
|
||||
<pre>{{ context_dump }}</pre>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ context_dump }}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
", "@WebProfiler/Collector/logger.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue