849 lines
54 KiB
PHP
849 lines
54 KiB
PHP
<?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/messenger.html.twig */
|
|
class __TwigTemplate_f50ee6b5ee8ac3bba9254d62fea30bd853d3c4bff4e2c0f2d18cc26deb9d17d5 extends 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'],
|
|
'head' => [$this, 'block_head'],
|
|
'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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/messenger.html.twig"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/messenger.html.twig"));
|
|
|
|
// line 3
|
|
$macros["helper"] = $this->macros["helper"] = $this;
|
|
// line 1
|
|
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/messenger.html.twig", 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 = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
|
|
|
|
$__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_length_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.', 6, $this->source); })()), "messages", [], "any", false, false, false, 6)) > 0)) {
|
|
// line 7
|
|
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.', 7, $this->source); })()), "exceptionsCount", [], "any", false, false, false, 7)) ? ("red") : (""));
|
|
// line 8
|
|
echo " ";
|
|
ob_start();
|
|
// line 9
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/messenger.svg");
|
|
echo "
|
|
<span class=\"sf-toolbar-value\">";
|
|
// line 10
|
|
echo twig_escape_filter($this->env, twig_length_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.', 10, $this->source); })()), "messages", [], "any", false, false, false, 10)), "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 " ";
|
|
$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.', 14, $this->source); })()), "buses", [], "any", false, false, false, 14));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["bus"]) {
|
|
// line 15
|
|
echo " ";
|
|
$context["exceptionsCount"] = 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.', 15, $this->source); })()), "exceptionsCount", [0 => $context["bus"]], "method", false, false, false, 15);
|
|
// line 16
|
|
echo " <div class=\"sf-toolbar-info-piece\">
|
|
<b>";
|
|
// line 17
|
|
echo twig_escape_filter($this->env, $context["bus"], "html", null, true);
|
|
echo "</b>
|
|
<span
|
|
title=\"";
|
|
// line 19
|
|
echo twig_escape_filter($this->env, (isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 19, $this->source); })()), "html", null, true);
|
|
echo " message(s) with exceptions\"
|
|
class=\"sf-toolbar-status sf-toolbar-status-";
|
|
// line 20
|
|
echo (((isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 20, $this->source); })())) ? ("red") : (""));
|
|
echo "\"
|
|
>
|
|
";
|
|
// line 22
|
|
echo twig_escape_filter($this->env, twig_length_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.', 22, $this->source); })()), "messages", [0 => $context["bus"]], "method", false, false, false, 22)), "html", null, true);
|
|
echo "
|
|
</span>
|
|
</div>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bus'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 26
|
|
echo " ";
|
|
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 27
|
|
echo "
|
|
";
|
|
// line 28
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => "messenger", "status" => (isset($context["status_color"]) || array_key_exists("status_color", $context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.', 28, $this->source); })())]);
|
|
echo "
|
|
";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 32
|
|
public function block_menu($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
|
|
|
// line 33
|
|
echo " <span class=\"label";
|
|
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.', 33, $this->source); })()), "exceptionsCount", [], "any", false, false, false, 33)) ? (" label-status-error") : (""));
|
|
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.', 33, $this->source); })()), "messages", [], "any", false, false, false, 33))) ? (" disabled") : (""));
|
|
echo "\">
|
|
<span class=\"icon\">";
|
|
// line 34
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/messenger.svg");
|
|
echo "</span>
|
|
<strong>Messages</strong>
|
|
";
|
|
// line 36
|
|
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.', 36, $this->source); })()), "exceptionsCount", [], "any", false, false, false, 36) > 0)) {
|
|
// line 37
|
|
echo " <span class=\"count\">
|
|
<span>";
|
|
// line 38
|
|
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.', 38, $this->source); })()), "exceptionsCount", [], "any", false, false, false, 38), "html", null, true);
|
|
echo "</span>
|
|
</span>
|
|
";
|
|
}
|
|
// line 41
|
|
echo " </span>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 44
|
|
public function block_head($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
|
|
|
|
// line 45
|
|
echo " ";
|
|
$this->displayParentBlock("head", $context, $blocks);
|
|
echo "
|
|
<style>
|
|
.message-item thead th { position: relative; cursor: pointer; user-select: none; padding-right: 35px; }
|
|
.message-item tbody tr td:first-child { width: 170px; }
|
|
|
|
.message-item .label { float: right; padding: 1px 5px; opacity: .75; margin-left: 5px; }
|
|
.message-item .toggle-button { position: absolute; right: 6px; top: 6px; opacity: .5; pointer-events: none }
|
|
.message-item .icon svg { height: 24px; width: 24px; }
|
|
|
|
.message-item .sf-toggle-off .icon-close, .sf-toggle-on .icon-open { display: none; }
|
|
.message-item .sf-toggle-off .icon-open, .sf-toggle-on .icon-close { display: block; }
|
|
|
|
.message-bus .badge.status-some-errors { line-height: 16px; border-bottom: 2px solid #B0413E; }
|
|
|
|
.message-item tbody.sf-toggle-content.sf-toggle-visible { display: table-row-group; }
|
|
td.message-bus-dispatch-caller { background: #f1f2f3; }
|
|
.theme-dark td.message-bus-dispatch-caller { background: var(--base-1); }
|
|
</style>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 65
|
|
public function block_panel($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
|
|
|
// line 66
|
|
echo " ";
|
|
$macros["helper"] = $this;
|
|
// line 67
|
|
echo "
|
|
<h2>Messages</h2>
|
|
|
|
";
|
|
// line 70
|
|
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.', 70, $this->source); })()), "messages", [], "any", false, false, false, 70))) {
|
|
// line 71
|
|
echo " <div class=\"empty\">
|
|
<p>No messages have been collected.</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 75
|
|
echo " <div class=\"sf-tabs message-bus\">
|
|
<div class=\"tab\">
|
|
";
|
|
// line 77
|
|
$context["messages"] = 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.', 77, $this->source); })()), "messages", [], "any", false, false, false, 77);
|
|
// line 78
|
|
echo " ";
|
|
$context["exceptionsCount"] = 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.', 78, $this->source); })()), "exceptionsCount", [], "any", false, false, false, 78);
|
|
// line 79
|
|
echo " <h3 class=\"tab-title\">All<span class=\"badge ";
|
|
echo (((isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 79, $this->source); })())) ? (((((isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 79, $this->source); })()) == twig_length_filter($this->env, (isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 79, $this->source); })())))) ? ("status-error") : ("status-some-errors"))) : (""));
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 79, $this->source); })())), "html", null, true);
|
|
echo "</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<p class=\"text-muted\">Ordered list of dispatched messages across all your buses</p>
|
|
";
|
|
// line 83
|
|
echo twig_call_macro($macros["helper"], "macro_render_bus_messages", [(isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 83, $this->source); })()), true], 83, $context, $this->getSourceContext());
|
|
echo "
|
|
</div>
|
|
</div>
|
|
|
|
";
|
|
// line 87
|
|
$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.', 87, $this->source); })()), "buses", [], "any", false, false, false, 87));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["bus"]) {
|
|
// line 88
|
|
echo " <div class=\"tab message-bus\">
|
|
";
|
|
// line 89
|
|
$context["messages"] = 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.', 89, $this->source); })()), "messages", [0 => $context["bus"]], "method", false, false, false, 89);
|
|
// line 90
|
|
echo " ";
|
|
$context["exceptionsCount"] = 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.', 90, $this->source); })()), "exceptionsCount", [0 => $context["bus"]], "method", false, false, false, 90);
|
|
// line 91
|
|
echo " <h3 class=\"tab-title\">";
|
|
echo twig_escape_filter($this->env, $context["bus"], "html", null, true);
|
|
echo "<span class=\"badge ";
|
|
echo (((isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 91, $this->source); })())) ? (((((isset($context["exceptionsCount"]) || array_key_exists("exceptionsCount", $context) ? $context["exceptionsCount"] : (function () { throw new RuntimeError('Variable "exceptionsCount" does not exist.', 91, $this->source); })()) == twig_length_filter($this->env, (isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 91, $this->source); })())))) ? ("status-error") : ("status-some-errors"))) : (""));
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_length_filter($this->env, (isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 91, $this->source); })())), "html", null, true);
|
|
echo "</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<p class=\"text-muted\">Ordered list of messages dispatched on the <code>";
|
|
// line 94
|
|
echo twig_escape_filter($this->env, $context["bus"], "html", null, true);
|
|
echo "</code> bus</p>
|
|
";
|
|
// line 95
|
|
echo twig_call_macro($macros["helper"], "macro_render_bus_messages", [(isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 95, $this->source); })())], 95, $context, $this->getSourceContext());
|
|
echo "
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bus'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 99
|
|
echo " </div>
|
|
";
|
|
}
|
|
// line 101
|
|
echo "
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 104
|
|
public function macro_render_bus_messages($__messages__ = null, $__showBus__ = false, ...$__varargs__)
|
|
{
|
|
$macros = $this->macros;
|
|
$context = $this->env->mergeGlobals([
|
|
"messages" => $__messages__,
|
|
"showBus" => $__showBus__,
|
|
"varargs" => $__varargs__,
|
|
]);
|
|
|
|
$blocks = [];
|
|
|
|
ob_start();
|
|
try {
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_bus_messages"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "render_bus_messages"));
|
|
|
|
// line 105
|
|
echo " ";
|
|
$context["discr"] = twig_random($this->env);
|
|
// line 106
|
|
echo " ";
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable((isset($context["messages"]) || array_key_exists("messages", $context) ? $context["messages"] : (function () { throw new RuntimeError('Variable "messages" does not exist.', 106, $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["dispatchCall"]) {
|
|
// line 107
|
|
echo " <table class=\"message-item\">
|
|
<thead>
|
|
<tr>
|
|
<th colspan=\"2\" class=\"sf-toggle\"
|
|
data-toggle-selector=\"#message-item-";
|
|
// line 111
|
|
echo twig_escape_filter($this->env, (isset($context["discr"]) || array_key_exists("discr", $context) ? $context["discr"] : (function () { throw new RuntimeError('Variable "discr" does not exist.', 111, $this->source); })()), "html", null, true);
|
|
echo "-";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 111), "html", null, true);
|
|
echo "-details\"
|
|
data-toggle-initial=\"";
|
|
// line 112
|
|
echo ((twig_get_attribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 112)) ? ("display") : (""));
|
|
echo "\"
|
|
>
|
|
<span class=\"dump-inline\">";
|
|
// line 114
|
|
echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "message", [], "any", false, false, false, 114), "type", [], "any", false, false, false, 114));
|
|
echo "</span>
|
|
";
|
|
// line 115
|
|
if ((isset($context["showBus"]) || array_key_exists("showBus", $context) ? $context["showBus"] : (function () { throw new RuntimeError('Variable "showBus" does not exist.', 115, $this->source); })())) {
|
|
// line 116
|
|
echo " <span class=\"label\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "bus", [], "any", false, false, false, 116), "html", null, true);
|
|
echo "</span>
|
|
";
|
|
}
|
|
// line 118
|
|
echo " ";
|
|
if (twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "exception", [], "any", true, true, false, 118)) {
|
|
// line 119
|
|
echo " <span class=\"label status-error\">exception</span>
|
|
";
|
|
}
|
|
// line 121
|
|
echo " <a class=\"toggle-button\">
|
|
<span class=\"icon icon-close\">";
|
|
// line 122
|
|
echo twig_include($this->env, $context, "@WebProfiler/images/icon-minus-square.svg");
|
|
echo "</span>
|
|
<span class=\"icon icon-open\">";
|
|
// line 123
|
|
echo twig_include($this->env, $context, "@WebProfiler/images/icon-plus-square.svg");
|
|
echo "</span>
|
|
</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id=\"message-item-";
|
|
// line 128
|
|
echo twig_escape_filter($this->env, (isset($context["discr"]) || array_key_exists("discr", $context) ? $context["discr"] : (function () { throw new RuntimeError('Variable "discr" does not exist.', 128, $this->source); })()), "html", null, true);
|
|
echo "-";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 128), "html", null, true);
|
|
echo "-details\" class=\"sf-toggle-content\">
|
|
<tr>
|
|
<td colspan=\"2\" class=\"message-bus-dispatch-caller\">
|
|
<span class=\"metadata\">In
|
|
";
|
|
// line 132
|
|
$context["caller"] = twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "caller", [], "any", false, false, false, 132);
|
|
// line 133
|
|
echo " ";
|
|
if (twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 133, $this->source); })()), "line", [], "any", false, false, false, 133)) {
|
|
// line 134
|
|
echo " ";
|
|
$context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 134, $this->source); })()), "file", [], "any", false, false, false, 134), twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 134, $this->source); })()), "line", [], "any", false, false, false, 134));
|
|
// line 135
|
|
echo " ";
|
|
if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 135, $this->source); })())) {
|
|
// line 136
|
|
echo " <a href=\"";
|
|
echo twig_escape_filter($this->env, (isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 136, $this->source); })()), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 136, $this->source); })()), "file", [], "any", false, false, false, 136), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 136, $this->source); })()), "name", [], "any", false, false, false, 136), "html", null, true);
|
|
echo "</a>
|
|
";
|
|
} else {
|
|
// line 138
|
|
echo " <abbr title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 138, $this->source); })()), "file", [], "any", false, false, false, 138), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 138, $this->source); })()), "name", [], "any", false, false, false, 138), "html", null, true);
|
|
echo "</abbr>
|
|
";
|
|
}
|
|
// line 140
|
|
echo " ";
|
|
} else {
|
|
// line 141
|
|
echo " ";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 141, $this->source); })()), "name", [], "any", false, false, false, 141), "html", null, true);
|
|
echo "
|
|
";
|
|
}
|
|
// line 143
|
|
echo " line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
|
|
echo twig_escape_filter($this->env, (isset($context["discr"]) || array_key_exists("discr", $context) ? $context["discr"] : (function () { throw new RuntimeError('Variable "discr" does not exist.', 143, $this->source); })()), "html", null, true);
|
|
echo "-";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 143), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 143, $this->source); })()), "line", [], "any", false, false, false, 143), "html", null, true);
|
|
echo "</a>
|
|
</span>
|
|
|
|
<div class=\"hidden\" id=\"sf-trace-";
|
|
// line 146
|
|
echo twig_escape_filter($this->env, (isset($context["discr"]) || array_key_exists("discr", $context) ? $context["discr"] : (function () { throw new RuntimeError('Variable "discr" does not exist.', 146, $this->source); })()), "html", null, true);
|
|
echo "-";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 146), "html", null, true);
|
|
echo "\">
|
|
<div class=\"trace\">
|
|
";
|
|
// line 148
|
|
echo twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 148, $this->source); })()), "file", [], "any", false, false, false, 148), twig_get_attribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 148, $this->source); })()), "line", [], "any", false, false, false, 148)), ["#DD0000" => "var(--highlight-string)", "#007700" => "var(--highlight-keyword)", "#0000BB" => "var(--highlight-default)", "#FF8000" => "var(--highlight-comment)"]);
|
|
// line 153
|
|
echo "
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
";
|
|
// line 158
|
|
if ((isset($context["showBus"]) || array_key_exists("showBus", $context) ? $context["showBus"] : (function () { throw new RuntimeError('Variable "showBus" does not exist.', 158, $this->source); })())) {
|
|
// line 159
|
|
echo " <tr>
|
|
<td class=\"text-bold\">Bus</td>
|
|
<td>";
|
|
// line 161
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "bus", [], "any", false, false, false, 161), "html", null, true);
|
|
echo "</td>
|
|
</tr>
|
|
";
|
|
}
|
|
// line 164
|
|
echo " <tr>
|
|
<td class=\"text-bold\">Message</td>
|
|
<td>";
|
|
// line 166
|
|
echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "message", [], "any", false, false, false, 166), "value", [], "any", false, false, false, 166), 2);
|
|
echo "</td>
|
|
</tr>
|
|
<tr>
|
|
<td class=\"text-bold\">Envelope stamps <span class=\"text-muted\">when dispatching</span></td>
|
|
<td>
|
|
";
|
|
// line 171
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "stamps", [], "any", false, false, false, 171));
|
|
$context['_iterated'] = false;
|
|
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
|
|
// line 172
|
|
echo " ";
|
|
echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["item"]);
|
|
echo "
|
|
";
|
|
$context['_iterated'] = true;
|
|
}
|
|
if (!$context['_iterated']) {
|
|
// line 174
|
|
echo " <span class=\"text-muted\">No items</span>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 176
|
|
echo " </td>
|
|
</tr>
|
|
";
|
|
// line 178
|
|
if (twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "stamps_after_dispatch", [], "any", true, true, false, 178)) {
|
|
// line 179
|
|
echo " <tr>
|
|
<td class=\"text-bold\">Envelope stamps <span class=\"text-muted\">after dispatch</span></td>
|
|
<td>
|
|
";
|
|
// line 182
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "stamps_after_dispatch", [], "any", false, false, false, 182));
|
|
$context['_iterated'] = false;
|
|
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
|
|
// line 183
|
|
echo " ";
|
|
echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["item"]);
|
|
echo "
|
|
";
|
|
$context['_iterated'] = true;
|
|
}
|
|
if (!$context['_iterated']) {
|
|
// line 185
|
|
echo " <span class=\"text-muted\">No items</span>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 187
|
|
echo " </td>
|
|
</tr>
|
|
";
|
|
}
|
|
// line 190
|
|
echo " ";
|
|
if (twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "exception", [], "any", true, true, false, 190)) {
|
|
// line 191
|
|
echo " <tr>
|
|
<td class=\"text-bold\">Exception</td>
|
|
<td>
|
|
";
|
|
// line 194
|
|
echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["dispatchCall"], "exception", [], "any", false, false, false, 194), "value", [], "any", false, false, false, 194), 1);
|
|
echo "
|
|
</td>
|
|
</tr>
|
|
";
|
|
}
|
|
// line 198
|
|
echo " </tbody>
|
|
</table>
|
|
";
|
|
++$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['dispatchCall'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
|
|
return ('' === $tmp = ob_get_contents()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
} finally {
|
|
ob_end_clean();
|
|
}
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@WebProfiler/Collector/messenger.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 600 => 198, 593 => 194, 588 => 191, 585 => 190, 580 => 187, 573 => 185, 565 => 183, 560 => 182, 555 => 179, 553 => 178, 549 => 176, 542 => 174, 534 => 172, 529 => 171, 521 => 166, 517 => 164, 511 => 161, 507 => 159, 505 => 158, 498 => 153, 496 => 148, 489 => 146, 478 => 143, 472 => 141, 469 => 140, 461 => 138, 451 => 136, 448 => 135, 445 => 134, 442 => 133, 440 => 132, 431 => 128, 423 => 123, 419 => 122, 416 => 121, 412 => 119, 409 => 118, 403 => 116, 401 => 115, 397 => 114, 392 => 112, 386 => 111, 380 => 107, 362 => 106, 359 => 105, 339 => 104, 328 => 101, 324 => 99, 314 => 95, 310 => 94, 299 => 91, 296 => 90, 294 => 89, 291 => 88, 287 => 87, 280 => 83, 270 => 79, 267 => 78, 265 => 77, 261 => 75, 255 => 71, 253 => 70, 248 => 67, 245 => 66, 235 => 65, 205 => 45, 195 => 44, 184 => 41, 178 => 38, 175 => 37, 173 => 36, 168 => 34, 162 => 33, 152 => 32, 139 => 28, 136 => 27, 133 => 26, 123 => 22, 118 => 20, 114 => 19, 109 => 17, 106 => 16, 103 => 15, 98 => 14, 96 => 13, 93 => 12, 88 => 10, 83 => 9, 80 => 8, 77 => 7, 74 => 6, 64 => 5, 53 => 1, 51 => 3, 38 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
|
|
|
{% import _self as helper %}
|
|
|
|
{% block toolbar %}
|
|
{% if collector.messages|length > 0 %}
|
|
{% set status_color = collector.exceptionsCount ? 'red' %}
|
|
{% set icon %}
|
|
{{ include('@WebProfiler/Icon/messenger.svg') }}
|
|
<span class=\"sf-toolbar-value\">{{ collector.messages|length }}</span>
|
|
{% endset %}
|
|
|
|
{% set text %}
|
|
{% for bus in collector.buses %}
|
|
{% set exceptionsCount = collector.exceptionsCount(bus) %}
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>{{ bus }}</b>
|
|
<span
|
|
title=\"{{ exceptionsCount }} message(s) with exceptions\"
|
|
class=\"sf-toolbar-status sf-toolbar-status-{{ exceptionsCount ? 'red' }}\"
|
|
>
|
|
{{ collector.messages(bus)|length }}
|
|
</span>
|
|
</div>
|
|
{% endfor %}
|
|
{% endset %}
|
|
|
|
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: 'messenger', status: status_color }) }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block menu %}
|
|
<span class=\"label{{ collector.exceptionsCount ? ' label-status-error' }}{{ collector.messages is empty ? ' disabled' }}\">
|
|
<span class=\"icon\">{{ include('@WebProfiler/Icon/messenger.svg') }}</span>
|
|
<strong>Messages</strong>
|
|
{% if collector.exceptionsCount > 0 %}
|
|
<span class=\"count\">
|
|
<span>{{ collector.exceptionsCount }}</span>
|
|
</span>
|
|
{% endif %}
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block head %}
|
|
{{ parent() }}
|
|
<style>
|
|
.message-item thead th { position: relative; cursor: pointer; user-select: none; padding-right: 35px; }
|
|
.message-item tbody tr td:first-child { width: 170px; }
|
|
|
|
.message-item .label { float: right; padding: 1px 5px; opacity: .75; margin-left: 5px; }
|
|
.message-item .toggle-button { position: absolute; right: 6px; top: 6px; opacity: .5; pointer-events: none }
|
|
.message-item .icon svg { height: 24px; width: 24px; }
|
|
|
|
.message-item .sf-toggle-off .icon-close, .sf-toggle-on .icon-open { display: none; }
|
|
.message-item .sf-toggle-off .icon-open, .sf-toggle-on .icon-close { display: block; }
|
|
|
|
.message-bus .badge.status-some-errors { line-height: 16px; border-bottom: 2px solid #B0413E; }
|
|
|
|
.message-item tbody.sf-toggle-content.sf-toggle-visible { display: table-row-group; }
|
|
td.message-bus-dispatch-caller { background: #f1f2f3; }
|
|
.theme-dark td.message-bus-dispatch-caller { background: var(--base-1); }
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block panel %}
|
|
{% import _self as helper %}
|
|
|
|
<h2>Messages</h2>
|
|
|
|
{% if collector.messages is empty %}
|
|
<div class=\"empty\">
|
|
<p>No messages have been collected.</p>
|
|
</div>
|
|
{% else %}
|
|
<div class=\"sf-tabs message-bus\">
|
|
<div class=\"tab\">
|
|
{% set messages = collector.messages %}
|
|
{% set exceptionsCount = collector.exceptionsCount %}
|
|
<h3 class=\"tab-title\">All<span class=\"badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}\">{{ messages|length }}</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<p class=\"text-muted\">Ordered list of dispatched messages across all your buses</p>
|
|
{{ helper.render_bus_messages(messages, true) }}
|
|
</div>
|
|
</div>
|
|
|
|
{% for bus in collector.buses %}
|
|
<div class=\"tab message-bus\">
|
|
{% set messages = collector.messages(bus) %}
|
|
{% set exceptionsCount = collector.exceptionsCount(bus) %}
|
|
<h3 class=\"tab-title\">{{ bus }}<span class=\"badge {{ exceptionsCount ? exceptionsCount == messages|length ? 'status-error' : 'status-some-errors' }}\">{{ messages|length }}</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<p class=\"text-muted\">Ordered list of messages dispatched on the <code>{{ bus }}</code> bus</p>
|
|
{{ helper.render_bus_messages(messages) }}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% macro render_bus_messages(messages, showBus = false) %}
|
|
{% set discr = random() %}
|
|
{% for dispatchCall in messages %}
|
|
<table class=\"message-item\">
|
|
<thead>
|
|
<tr>
|
|
<th colspan=\"2\" class=\"sf-toggle\"
|
|
data-toggle-selector=\"#message-item-{{ discr }}-{{ loop.index0 }}-details\"
|
|
data-toggle-initial=\"{{ loop.first ? 'display' }}\"
|
|
>
|
|
<span class=\"dump-inline\">{{ profiler_dump(dispatchCall.message.type) }}</span>
|
|
{% if showBus %}
|
|
<span class=\"label\">{{ dispatchCall.bus }}</span>
|
|
{% endif %}
|
|
{% if dispatchCall.exception is defined %}
|
|
<span class=\"label status-error\">exception</span>
|
|
{% endif %}
|
|
<a class=\"toggle-button\">
|
|
<span class=\"icon icon-close\">{{ include('@WebProfiler/images/icon-minus-square.svg') }}</span>
|
|
<span class=\"icon icon-open\">{{ include('@WebProfiler/images/icon-plus-square.svg') }}</span>
|
|
</a>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id=\"message-item-{{ discr }}-{{ loop.index0 }}-details\" class=\"sf-toggle-content\">
|
|
<tr>
|
|
<td colspan=\"2\" class=\"message-bus-dispatch-caller\">
|
|
<span class=\"metadata\">In
|
|
{% set caller = dispatchCall.caller %}
|
|
{% if caller.line %}
|
|
{% set link = caller.file|file_link(caller.line) %}
|
|
{% if link %}
|
|
<a href=\"{{ link }}\" title=\"{{ caller.file }}\">{{ caller.name }}</a>
|
|
{% else %}
|
|
<abbr title=\"{{ caller.file }}\">{{ caller.name }}</abbr>
|
|
{% endif %}
|
|
{% else %}
|
|
{{ caller.name }}
|
|
{% endif %}
|
|
line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-{{ discr }}-{{ loop.index0 }}\">{{ caller.line }}</a>
|
|
</span>
|
|
|
|
<div class=\"hidden\" id=\"sf-trace-{{ discr }}-{{ loop.index0 }}\">
|
|
<div class=\"trace\">
|
|
{{ caller.file|file_excerpt(caller.line)|replace({
|
|
'#DD0000': 'var(--highlight-string)',
|
|
'#007700': 'var(--highlight-keyword)',
|
|
'#0000BB': 'var(--highlight-default)',
|
|
'#FF8000': 'var(--highlight-comment)'
|
|
})|raw }}
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% if showBus %}
|
|
<tr>
|
|
<td class=\"text-bold\">Bus</td>
|
|
<td>{{ dispatchCall.bus }}</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td class=\"text-bold\">Message</td>
|
|
<td>{{ profiler_dump(dispatchCall.message.value, maxDepth=2) }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td class=\"text-bold\">Envelope stamps <span class=\"text-muted\">when dispatching</span></td>
|
|
<td>
|
|
{% for item in dispatchCall.stamps %}
|
|
{{ profiler_dump(item) }}
|
|
{% else %}
|
|
<span class=\"text-muted\">No items</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% if dispatchCall.stamps_after_dispatch is defined %}
|
|
<tr>
|
|
<td class=\"text-bold\">Envelope stamps <span class=\"text-muted\">after dispatch</span></td>
|
|
<td>
|
|
{% for item in dispatchCall.stamps_after_dispatch %}
|
|
{{ profiler_dump(item) }}
|
|
{% else %}
|
|
<span class=\"text-muted\">No items</span>
|
|
{% endfor %}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% if dispatchCall.exception is defined %}
|
|
<tr>
|
|
<td class=\"text-bold\">Exception</td>
|
|
<td>
|
|
{{ profiler_dump(dispatchCall.exception.value, maxDepth=1) }}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% endfor %}
|
|
{% endmacro %}
|
|
", "@WebProfiler/Collector/messenger.html.twig", "/home/poule/encrypted/stockage-syncable/www/development/html/caisse/vendor/symfony/web-profiler-bundle/Resources/views/Collector/messenger.html.twig");
|
|
}
|
|
}
|