1080 lines
52 KiB
PHP
1080 lines
52 KiB
PHP
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
|
|
/* @WebProfiler/Collector/request.html.twig */
|
|
class __TwigTemplate_f9d617be56c59f996de026ff3498b700292152b376e10ba7c336253c401f3797 extends \Twig\Template
|
|
{
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
// line 1
|
|
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/request.html.twig", 1);
|
|
$this->blocks = [
|
|
'toolbar' => [$this, 'block_toolbar'],
|
|
'menu' => [$this, 'block_menu'],
|
|
'panel' => [$this, 'block_panel'],
|
|
];
|
|
}
|
|
|
|
protected function doGetParent(array $context)
|
|
{
|
|
return "@WebProfiler/Profiler/layout.html.twig";
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/request.html.twig"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/request.html.twig"));
|
|
|
|
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 3
|
|
public function block_toolbar($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
|
|
|
|
// line 4
|
|
echo " ";
|
|
$context["helper"] = $this;
|
|
// line 5
|
|
echo " ";
|
|
ob_start();
|
|
// line 6
|
|
echo " ";
|
|
echo $context["helper"]->getset_handler($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "controller", []));
|
|
echo "
|
|
";
|
|
$context["request_handler"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 8
|
|
echo "
|
|
";
|
|
// line 9
|
|
if ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", [])) {
|
|
// line 10
|
|
echo " ";
|
|
ob_start();
|
|
// line 11
|
|
echo " ";
|
|
echo $context["helper"]->getset_handler($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "controller", []), $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "route", []), ((("GET" != $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "method", []))) ? ($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "method", [])) : ("")));
|
|
echo "
|
|
";
|
|
$context["redirect_handler"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 13
|
|
echo " ";
|
|
}
|
|
// line 14
|
|
echo "
|
|
";
|
|
// line 15
|
|
if ((($this->getAttribute(($context["collector"] ?? null), "forward", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "forward", []), false)) : (false))) {
|
|
// line 16
|
|
echo " ";
|
|
ob_start();
|
|
// line 17
|
|
echo " ";
|
|
echo $context["helper"]->getset_handler($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "forward", []), "controller", []));
|
|
echo "
|
|
";
|
|
$context["forward_handler"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 19
|
|
echo " ";
|
|
}
|
|
// line 20
|
|
echo "
|
|
";
|
|
// line 21
|
|
$context["request_status_code_color"] = ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "statuscode", []) >= 400)) ? ("red") : (((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "statuscode", []) >= 300)) ? ("yellow") : ("green"))));
|
|
// line 22
|
|
echo "
|
|
";
|
|
// line 23
|
|
ob_start();
|
|
// line 24
|
|
echo " <span class=\"sf-toolbar-status sf-toolbar-status-";
|
|
echo twig_escape_filter($this->env, ($context["request_status_code_color"] ?? $this->getContext($context, "request_status_code_color")), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "statuscode", []), "html", null, true);
|
|
echo "</span>
|
|
";
|
|
// line 25
|
|
if ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "route", [])) {
|
|
// line 26
|
|
echo " ";
|
|
if ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", [])) {
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/redirect.svg");
|
|
}
|
|
// line 27
|
|
echo " ";
|
|
if ((($this->getAttribute(($context["collector"] ?? null), "forward", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "forward", []), false)) : (false))) {
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/forward.svg");
|
|
}
|
|
// line 28
|
|
echo " <span class=\"sf-toolbar-label\">";
|
|
echo twig_escape_filter($this->env, ((("GET" != $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "method", []))) ? ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "method", [])) : ("")), "html", null, true);
|
|
echo " @</span>
|
|
<span class=\"sf-toolbar-value sf-toolbar-info-piece-additional\">";
|
|
// line 29
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "route", []), "html", null, true);
|
|
echo "</span>
|
|
";
|
|
}
|
|
// line 31
|
|
echo " ";
|
|
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 32
|
|
echo "
|
|
";
|
|
// line 33
|
|
ob_start();
|
|
// line 34
|
|
echo " <div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>HTTP status</b>
|
|
<span>";
|
|
// line 37
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "statuscode", []), "html", null, true);
|
|
echo " ";
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "statustext", []), "html", null, true);
|
|
echo "</span>
|
|
</div>
|
|
|
|
";
|
|
// line 40
|
|
if (("GET" != $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "method", []))) {
|
|
// line 41
|
|
echo "<div class=\"sf-toolbar-info-piece\">
|
|
<b>Method</b>
|
|
<span>";
|
|
// line 43
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "method", []), "html", null, true);
|
|
echo "</span>
|
|
</div>";
|
|
}
|
|
// line 46
|
|
echo "
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Controller</b>
|
|
<span>";
|
|
// line 49
|
|
echo twig_escape_filter($this->env, ($context["request_handler"] ?? $this->getContext($context, "request_handler")), "html", null, true);
|
|
echo "</span>
|
|
</div>
|
|
|
|
";
|
|
// line 52
|
|
if ($this->getAttribute($this->getAttribute(($context["collector"] ?? null), "controller", [], "any", false, true), "class", [], "any", true, true)) {
|
|
// line 53
|
|
echo "<div class=\"sf-toolbar-info-piece\">
|
|
<b>Controller class</b>
|
|
<span>";
|
|
// line 55
|
|
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "controller", []), "class", []), "html", null, true);
|
|
echo "</span>
|
|
</div>";
|
|
}
|
|
// line 58
|
|
echo "
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Route name</b>
|
|
<span>";
|
|
// line 61
|
|
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "route", [], "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "route", []), "n/a")) : ("n/a")), "html", null, true);
|
|
echo "</span>
|
|
</div>
|
|
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Has session</b>
|
|
<span>";
|
|
// line 66
|
|
if (twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionmetadata", []))) {
|
|
echo "yes";
|
|
} else {
|
|
echo "no";
|
|
}
|
|
echo "</span>
|
|
</div>
|
|
</div>
|
|
|
|
";
|
|
// line 70
|
|
if ((isset($context["redirect_handler"]) || array_key_exists("redirect_handler", $context))) {
|
|
// line 71
|
|
echo "<div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>
|
|
<span class=\"sf-toolbar-redirection-status sf-toolbar-status-yellow\">";
|
|
// line 74
|
|
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "status_code", []), "html", null, true);
|
|
echo "</span>
|
|
Redirect from
|
|
</b>
|
|
<span>
|
|
";
|
|
// line 78
|
|
echo twig_escape_filter($this->env, ($context["redirect_handler"] ?? $this->getContext($context, "redirect_handler")), "html", null, true);
|
|
echo "
|
|
(<a href=\"";
|
|
// line 79
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_profiler", ["token" => $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "token", [])]), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "redirect", []), "token", []), "html", null, true);
|
|
echo "</a>)
|
|
</span>
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 84
|
|
echo "
|
|
";
|
|
// line 85
|
|
if ((isset($context["forward_handler"]) || array_key_exists("forward_handler", $context))) {
|
|
// line 86
|
|
echo " <div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Forwarded to</b>
|
|
<span>
|
|
";
|
|
// line 90
|
|
echo twig_escape_filter($this->env, ($context["forward_handler"] ?? $this->getContext($context, "forward_handler")), "html", null, true);
|
|
echo "
|
|
(<a href=\"";
|
|
// line 91
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_profiler", ["token" => $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "forward", []), "token", [])]), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "forward", []), "token", []), "html", null, true);
|
|
echo "</a>)
|
|
</span>
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 96
|
|
echo " ";
|
|
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 97
|
|
echo "
|
|
";
|
|
// line 98
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => ($context["profiler_url"] ?? $this->getContext($context, "profiler_url"))]);
|
|
echo "
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 101
|
|
public function block_menu($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
|
|
|
// line 102
|
|
echo " <span class=\"label\">
|
|
<span class=\"icon\">";
|
|
// line 103
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/request.svg");
|
|
echo "</span>
|
|
<strong>Request / Response</strong>
|
|
</span>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 108
|
|
public function block_panel($context, array $blocks = [])
|
|
{
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
|
|
|
// line 109
|
|
echo " ";
|
|
$context["helper"] = $this;
|
|
// line 110
|
|
echo "
|
|
<h2>
|
|
";
|
|
// line 112
|
|
echo $context["helper"]->getset_handler($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "controller", []));
|
|
echo "
|
|
</h2>
|
|
|
|
<div class=\"sf-tabs\">
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Request</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>GET Parameters</h3>
|
|
|
|
";
|
|
// line 122
|
|
if (twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestquery", []), "all", []))) {
|
|
// line 123
|
|
echo " <div class=\"empty\">
|
|
<p>No GET parameters</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 127
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestquery", []), "maxDepth" => 1], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 129
|
|
echo "
|
|
<h3>POST Parameters</h3>
|
|
|
|
";
|
|
// line 132
|
|
if (twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestrequest", []), "all", []))) {
|
|
// line 133
|
|
echo " <div class=\"empty\">
|
|
<p>No POST parameters</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 137
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestrequest", []), "maxDepth" => 1], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 139
|
|
echo "
|
|
<h3>Request Attributes</h3>
|
|
|
|
";
|
|
// line 142
|
|
if (twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestattributes", []), "all", []))) {
|
|
// line 143
|
|
echo " <div class=\"empty\">
|
|
<p>No attributes</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 147
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestattributes", [])], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 149
|
|
echo "
|
|
<h3>Request Headers</h3>
|
|
";
|
|
// line 151
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestheaders", []), "labels" => [0 => "Header", 1 => "Value"], "maxDepth" => 1], false);
|
|
echo "
|
|
|
|
<h3>Request Content</h3>
|
|
|
|
";
|
|
// line 155
|
|
if (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "content", []) == false)) {
|
|
// line 156
|
|
echo " <div class=\"empty\">
|
|
<p>Request content not available (it was retrieved as a resource).</p>
|
|
</div>
|
|
";
|
|
} elseif ($this->getAttribute( // line 159
|
|
($context["collector"] ?? $this->getContext($context, "collector")), "content", [])) {
|
|
// line 160
|
|
echo " <div class=\"card\">
|
|
<pre class=\"break-long-words\">";
|
|
// line 161
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "content", []), "html", null, true);
|
|
echo "</pre>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 164
|
|
echo " <div class=\"empty\">
|
|
<p>No content</p>
|
|
</div>
|
|
";
|
|
}
|
|
// line 168
|
|
echo "
|
|
<h3>Server Parameters</h3>
|
|
";
|
|
// line 170
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestserver", [])], false);
|
|
echo "
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Response</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Response Headers</h3>
|
|
|
|
";
|
|
// line 180
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "responseheaders", []), "labels" => [0 => "Header", 1 => "Value"], "maxDepth" => 1], false);
|
|
echo "
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab ";
|
|
// line 184
|
|
echo (((twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestcookies", []), "all", [])) && twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "responsecookies", []), "all", [])))) ? ("disabled") : (""));
|
|
echo "\">
|
|
<h3 class=\"tab-title\">Cookies</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Request Cookies</h3>
|
|
|
|
";
|
|
// line 190
|
|
if (twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestcookies", []), "all", []))) {
|
|
// line 191
|
|
echo " <div class=\"empty\">
|
|
<p>No request cookies</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 195
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "requestcookies", [])], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 197
|
|
echo "
|
|
<h3>Response Cookies</h3>
|
|
|
|
";
|
|
// line 200
|
|
if (twig_test_empty($this->getAttribute($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "responsecookies", []), "all", []))) {
|
|
// line 201
|
|
echo " <div class=\"empty\">
|
|
<p>No response cookies</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 205
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "responsecookies", [])], true);
|
|
echo "
|
|
";
|
|
}
|
|
// line 207
|
|
echo " </div>
|
|
</div>
|
|
|
|
<div class=\"tab ";
|
|
// line 210
|
|
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionmetadata", []))) ? ("disabled") : (""));
|
|
echo "\">
|
|
<h3 class=\"tab-title\">Session</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Session Metadata</h3>
|
|
|
|
";
|
|
// line 216
|
|
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionmetadata", []))) {
|
|
// line 217
|
|
echo " <div class=\"empty\">
|
|
<p>No session metadata</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 221
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionmetadata", [])], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 223
|
|
echo "
|
|
<h3>Session Attributes</h3>
|
|
|
|
";
|
|
// line 226
|
|
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionattributes", []))) {
|
|
// line 227
|
|
echo " <div class=\"empty\">
|
|
<p>No session attributes</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 231
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "sessionattributes", []), "labels" => [0 => "Attribute", 1 => "Value"]], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 233
|
|
echo " </div>
|
|
</div>
|
|
|
|
<div class=\"tab ";
|
|
// line 236
|
|
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "flashes", []))) ? ("disabled") : (""));
|
|
echo "\">
|
|
<h3 class=\"tab-title\">Flashes</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Flashes</h3>
|
|
|
|
";
|
|
// line 242
|
|
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "flashes", []))) {
|
|
// line 243
|
|
echo " <div class=\"empty\">
|
|
<p>No flash messages were created.</p>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 247
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/table.html.twig", ["data" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "flashes", [])], false);
|
|
echo "
|
|
";
|
|
}
|
|
// line 249
|
|
echo " </div>
|
|
</div>
|
|
|
|
";
|
|
// line 252
|
|
if ($this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "parent", [])) {
|
|
// line 253
|
|
echo " <div class=\"tab\">
|
|
<h3 class=\"tab-title\">Parent Request</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>
|
|
<a href=\"";
|
|
// line 258
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_profiler", ["token" => $this->getAttribute($this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "parent", []), "token", [])]), "html", null, true);
|
|
echo "\">Return to parent request</a>
|
|
<small>(token = ";
|
|
// line 259
|
|
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "parent", []), "token", []), "html", null, true);
|
|
echo ")</small>
|
|
</h3>
|
|
|
|
";
|
|
// line 262
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute($this->getAttribute($this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "parent", []), "getcollector", [0 => "request"], "method"), "requestattributes", [])], false);
|
|
echo "
|
|
</div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 266
|
|
echo "
|
|
";
|
|
// line 267
|
|
if (twig_length_filter($this->env, $this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "children", []))) {
|
|
// line 268
|
|
echo " <div class=\"tab\">
|
|
<h3 class=\"tab-title\">Sub Requests <span class=\"badge\">";
|
|
// line 269
|
|
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "children", [])), "html", null, true);
|
|
echo "</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
";
|
|
// line 272
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["profile"] ?? $this->getContext($context, "profile")), "children", []));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
|
|
// line 273
|
|
echo " <h3>
|
|
";
|
|
// line 274
|
|
echo $context["helper"]->getset_handler($this->getAttribute($this->getAttribute($context["child"], "getcollector", [0 => "request"], "method"), "controller", []));
|
|
echo "
|
|
<small>(token = <a href=\"";
|
|
// line 275
|
|
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_profiler", ["token" => $this->getAttribute($context["child"], "token", [])]), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, $this->getAttribute($context["child"], "token", []), "html", null, true);
|
|
echo "</a>)</small>
|
|
</h3>
|
|
|
|
";
|
|
// line 278
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/bag.html.twig", ["bag" => $this->getAttribute($this->getAttribute($context["child"], "getcollector", [0 => "request"], "method"), "requestattributes", [])], false);
|
|
echo "
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 280
|
|
echo " </div>
|
|
</div>
|
|
";
|
|
}
|
|
// line 283
|
|
echo " </div>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 286
|
|
public function getset_handler($__controller__ = null, $__route__ = null, $__method__ = null, ...$__varargs__)
|
|
{
|
|
$context = $this->env->mergeGlobals([
|
|
"controller" => $__controller__,
|
|
"route" => $__route__,
|
|
"method" => $__method__,
|
|
"varargs" => $__varargs__,
|
|
]);
|
|
|
|
$blocks = [];
|
|
|
|
ob_start();
|
|
try {
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "set_handler"));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "set_handler"));
|
|
|
|
// line 287
|
|
echo " ";
|
|
if ($this->getAttribute(($context["controller"] ?? null), "class", [], "any", true, true)) {
|
|
// line 288
|
|
if ((((isset($context["method"]) || array_key_exists("method", $context))) ? (_twig_default_filter(($context["method"] ?? $this->getContext($context, "method")), false)) : (false))) {
|
|
echo "<span class=\"sf-toolbar-status sf-toolbar-redirection-method\">";
|
|
echo twig_escape_filter($this->env, ($context["method"] ?? $this->getContext($context, "method")), "html", null, true);
|
|
echo "</span>";
|
|
}
|
|
// line 289
|
|
$context["link"] = $this->env->getExtension('Symfony\Bridge\Twig\Extension\CodeExtension')->getFileLink($this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "file", []), $this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "line", []));
|
|
// line 290
|
|
if (($context["link"] ?? $this->getContext($context, "link"))) {
|
|
echo "<a href=\"";
|
|
echo twig_escape_filter($this->env, ($context["link"] ?? $this->getContext($context, "link")), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, $this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "file", []), "html", null, true);
|
|
echo "\">";
|
|
} else {
|
|
echo "<span>";
|
|
}
|
|
// line 292
|
|
if ((((isset($context["route"]) || array_key_exists("route", $context))) ? (_twig_default_filter(($context["route"] ?? $this->getContext($context, "route")), false)) : (false))) {
|
|
// line 293
|
|
echo "@";
|
|
echo twig_escape_filter($this->env, ($context["route"] ?? $this->getContext($context, "route")), "html", null, true);
|
|
} else {
|
|
// line 295
|
|
echo twig_escape_filter($this->env, strip_tags($this->env->getExtension('Symfony\Bridge\Twig\Extension\CodeExtension')->abbrClass($this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "class", []))), "html", null, true);
|
|
// line 296
|
|
echo twig_escape_filter($this->env, (($this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "method", [])) ? ((" :: " . $this->getAttribute(($context["controller"] ?? $this->getContext($context, "controller")), "method", []))) : ("")), "html", null, true);
|
|
}
|
|
// line 299
|
|
if (($context["link"] ?? $this->getContext($context, "link"))) {
|
|
echo "</a>";
|
|
} else {
|
|
echo "</span>";
|
|
}
|
|
} else {
|
|
// line 301
|
|
echo "<span>";
|
|
echo twig_escape_filter($this->env, (((isset($context["route"]) || array_key_exists("route", $context))) ? (_twig_default_filter(($context["route"] ?? $this->getContext($context, "route")), ($context["controller"] ?? $this->getContext($context, "controller")))) : (($context["controller"] ?? $this->getContext($context, "controller")))), "html", null, true);
|
|
echo "</span>";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
} catch (\Exception $e) {
|
|
ob_end_clean();
|
|
|
|
throw $e;
|
|
} catch (\Throwable $e) {
|
|
ob_end_clean();
|
|
|
|
throw $e;
|
|
}
|
|
|
|
return ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@WebProfiler/Collector/request.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 726 => 301, 719 => 299, 716 => 296, 714 => 295, 710 => 293, 708 => 292, 698 => 290, 696 => 289, 690 => 288, 687 => 287, 667 => 286, 656 => 283, 651 => 280, 643 => 278, 635 => 275, 631 => 274, 628 => 273, 624 => 272, 618 => 269, 615 => 268, 613 => 267, 610 => 266, 603 => 262, 597 => 259, 593 => 258, 586 => 253, 584 => 252, 579 => 249, 573 => 247, 567 => 243, 565 => 242, 556 => 236, 551 => 233, 545 => 231, 539 => 227, 537 => 226, 532 => 223, 526 => 221, 520 => 217, 518 => 216, 509 => 210, 504 => 207, 498 => 205, 492 => 201, 490 => 200, 485 => 197, 479 => 195, 473 => 191, 471 => 190, 462 => 184, 455 => 180, 442 => 170, 438 => 168, 432 => 164, 426 => 161, 423 => 160, 421 => 159, 416 => 156, 414 => 155, 407 => 151, 403 => 149, 397 => 147, 391 => 143, 389 => 142, 384 => 139, 378 => 137, 372 => 133, 370 => 132, 365 => 129, 359 => 127, 353 => 123, 351 => 122, 338 => 112, 334 => 110, 331 => 109, 322 => 108, 308 => 103, 305 => 102, 296 => 101, 284 => 98, 281 => 97, 278 => 96, 268 => 91, 264 => 90, 258 => 86, 256 => 85, 253 => 84, 243 => 79, 239 => 78, 232 => 74, 227 => 71, 225 => 70, 214 => 66, 206 => 61, 201 => 58, 196 => 55, 192 => 53, 190 => 52, 184 => 49, 179 => 46, 174 => 43, 170 => 41, 168 => 40, 160 => 37, 155 => 34, 153 => 33, 150 => 32, 147 => 31, 142 => 29, 137 => 28, 132 => 27, 127 => 26, 125 => 25, 118 => 24, 116 => 23, 113 => 22, 111 => 21, 108 => 20, 105 => 19, 99 => 17, 96 => 16, 94 => 15, 91 => 14, 88 => 13, 82 => 11, 79 => 10, 77 => 9, 74 => 8, 68 => 6, 65 => 5, 62 => 4, 53 => 3, 22 => 1,);
|
|
}
|
|
|
|
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
|
|
public function getSource()
|
|
{
|
|
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
|
|
|
|
return $this->getSourceContext()->getCode();
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
|
|
|
{% block toolbar %}
|
|
{% import _self as helper %}
|
|
{% set request_handler %}
|
|
{{ helper.set_handler(collector.controller) }}
|
|
{% endset %}
|
|
|
|
{% if collector.redirect %}
|
|
{% set redirect_handler %}
|
|
{{ helper.set_handler(collector.redirect.controller, collector.redirect.route, 'GET' != collector.redirect.method ? collector.redirect.method) }}
|
|
{% endset %}
|
|
{% endif %}
|
|
|
|
{% if collector.forward|default(false) %}
|
|
{% set forward_handler %}
|
|
{{ helper.set_handler(collector.forward.controller) }}
|
|
{% endset %}
|
|
{% endif %}
|
|
|
|
{% set request_status_code_color = (collector.statuscode >= 400) ? 'red' : (collector.statuscode >= 300) ? 'yellow' : 'green' %}
|
|
|
|
{% set icon %}
|
|
<span class=\"sf-toolbar-status sf-toolbar-status-{{ request_status_code_color }}\">{{ collector.statuscode }}</span>
|
|
{% if collector.route %}
|
|
{% if collector.redirect %}{{ include('@WebProfiler/Icon/redirect.svg') }}{% endif %}
|
|
{% if collector.forward|default(false) %}{{ include('@WebProfiler/Icon/forward.svg') }}{% endif %}
|
|
<span class=\"sf-toolbar-label\">{{ 'GET' != collector.method ? collector.method }} @</span>
|
|
<span class=\"sf-toolbar-value sf-toolbar-info-piece-additional\">{{ collector.route }}</span>
|
|
{% endif %}
|
|
{% endset %}
|
|
|
|
{% set text %}
|
|
<div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>HTTP status</b>
|
|
<span>{{ collector.statuscode }} {{ collector.statustext }}</span>
|
|
</div>
|
|
|
|
{% if 'GET' != collector.method -%}
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Method</b>
|
|
<span>{{ collector.method }}</span>
|
|
</div>
|
|
{%- endif %}
|
|
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Controller</b>
|
|
<span>{{ request_handler }}</span>
|
|
</div>
|
|
|
|
{% if collector.controller.class is defined -%}
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Controller class</b>
|
|
<span>{{ collector.controller.class }}</span>
|
|
</div>
|
|
{%- endif %}
|
|
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Route name</b>
|
|
<span>{{ collector.route|default('n/a') }}</span>
|
|
</div>
|
|
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Has session</b>
|
|
<span>{% if collector.sessionmetadata|length %}yes{% else %}no{% endif %}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{% if redirect_handler is defined -%}
|
|
<div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>
|
|
<span class=\"sf-toolbar-redirection-status sf-toolbar-status-yellow\">{{ collector.redirect.status_code }}</span>
|
|
Redirect from
|
|
</b>
|
|
<span>
|
|
{{ redirect_handler }}
|
|
(<a href=\"{{ path('_profiler', { token: collector.redirect.token }) }}\">{{ collector.redirect.token }}</a>)
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if forward_handler is defined %}
|
|
<div class=\"sf-toolbar-info-group\">
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<b>Forwarded to</b>
|
|
<span>
|
|
{{ forward_handler }}
|
|
(<a href=\"{{ path('_profiler', { token: collector.forward.token }) }}\">{{ collector.forward.token }}</a>)
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endset %}
|
|
|
|
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
|
|
{% endblock %}
|
|
|
|
{% block menu %}
|
|
<span class=\"label\">
|
|
<span class=\"icon\">{{ include('@WebProfiler/Icon/request.svg') }}</span>
|
|
<strong>Request / Response</strong>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block panel %}
|
|
{% import _self as helper %}
|
|
|
|
<h2>
|
|
{{ helper.set_handler(collector.controller) }}
|
|
</h2>
|
|
|
|
<div class=\"sf-tabs\">
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Request</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>GET Parameters</h3>
|
|
|
|
{% if collector.requestquery.all is empty %}
|
|
<div class=\"empty\">
|
|
<p>No GET parameters</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestquery, maxDepth: 1 }, with_context = false) }}
|
|
{% endif %}
|
|
|
|
<h3>POST Parameters</h3>
|
|
|
|
{% if collector.requestrequest.all is empty %}
|
|
<div class=\"empty\">
|
|
<p>No POST parameters</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestrequest, maxDepth: 1 }, with_context = false) }}
|
|
{% endif %}
|
|
|
|
<h3>Request Attributes</h3>
|
|
|
|
{% if collector.requestattributes.all is empty %}
|
|
<div class=\"empty\">
|
|
<p>No attributes</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestattributes }, with_context = false) }}
|
|
{% endif %}
|
|
|
|
<h3>Request Headers</h3>
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
|
|
|
|
<h3>Request Content</h3>
|
|
|
|
{% if collector.content == false %}
|
|
<div class=\"empty\">
|
|
<p>Request content not available (it was retrieved as a resource).</p>
|
|
</div>
|
|
{% elseif collector.content %}
|
|
<div class=\"card\">
|
|
<pre class=\"break-long-words\">{{ collector.content }}</pre>
|
|
</div>
|
|
{% else %}
|
|
<div class=\"empty\">
|
|
<p>No content</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<h3>Server Parameters</h3>
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestserver }, with_context = false) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Response</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Response Headers</h3>
|
|
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responseheaders, labels: ['Header', 'Value'], maxDepth: 1 }, with_context = false) }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab {{ collector.requestcookies.all is empty and collector.responsecookies.all is empty ? 'disabled' }}\">
|
|
<h3 class=\"tab-title\">Cookies</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Request Cookies</h3>
|
|
|
|
{% if collector.requestcookies.all is empty %}
|
|
<div class=\"empty\">
|
|
<p>No request cookies</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.requestcookies }, with_context = false) }}
|
|
{% endif %}
|
|
|
|
<h3>Response Cookies</h3>
|
|
|
|
{% if collector.responsecookies.all is empty %}
|
|
<div class=\"empty\">
|
|
<p>No response cookies</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: collector.responsecookies }, with_context = true) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab {{ collector.sessionmetadata is empty ? 'disabled' }}\">
|
|
<h3 class=\"tab-title\">Session</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Session Metadata</h3>
|
|
|
|
{% if collector.sessionmetadata is empty %}
|
|
<div class=\"empty\">
|
|
<p>No session metadata</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionmetadata }, with_context = false) }}
|
|
{% endif %}
|
|
|
|
<h3>Session Attributes</h3>
|
|
|
|
{% if collector.sessionattributes is empty %}
|
|
<div class=\"empty\">
|
|
<p>No session attributes</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.sessionattributes, labels: ['Attribute', 'Value'] }, with_context = false) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class=\"tab {{ collector.flashes is empty ? 'disabled' }}\">
|
|
<h3 class=\"tab-title\">Flashes</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>Flashes</h3>
|
|
|
|
{% if collector.flashes is empty %}
|
|
<div class=\"empty\">
|
|
<p>No flash messages were created.</p>
|
|
</div>
|
|
{% else %}
|
|
{{ include('@WebProfiler/Profiler/table.html.twig', { data: collector.flashes }, with_context = false) }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% if profile.parent %}
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Parent Request</h3>
|
|
|
|
<div class=\"tab-content\">
|
|
<h3>
|
|
<a href=\"{{ path('_profiler', { token: profile.parent.token }) }}\">Return to parent request</a>
|
|
<small>(token = {{ profile.parent.token }})</small>
|
|
</h3>
|
|
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: profile.parent.getcollector('request').requestattributes }, with_context = false) }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if profile.children|length %}
|
|
<div class=\"tab\">
|
|
<h3 class=\"tab-title\">Sub Requests <span class=\"badge\">{{ profile.children|length }}</span></h3>
|
|
|
|
<div class=\"tab-content\">
|
|
{% for child in profile.children %}
|
|
<h3>
|
|
{{ helper.set_handler(child.getcollector('request').controller) }}
|
|
<small>(token = <a href=\"{{ path('_profiler', { token: child.token }) }}\">{{ child.token }}</a>)</small>
|
|
</h3>
|
|
|
|
{{ include('@WebProfiler/Profiler/bag.html.twig', { bag: child.getcollector('request').requestattributes }, with_context = false) }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% macro set_handler(controller, route, method) %}
|
|
{% if controller.class is defined -%}
|
|
{%- if method|default(false) %}<span class=\"sf-toolbar-status sf-toolbar-redirection-method\">{{ method }}</span>{% endif -%}
|
|
{%- set link = controller.file|file_link(controller.line) %}
|
|
{%- if link %}<a href=\"{{ link }}\" title=\"{{ controller.file }}\">{% else %}<span>{% endif %}
|
|
|
|
{%- if route|default(false) -%}
|
|
@{{ route }}
|
|
{%- else -%}
|
|
{{- controller.class|abbr_class|striptags -}}
|
|
{{- controller.method ? ' :: ' ~ controller.method -}}
|
|
{%- endif -%}
|
|
|
|
{%- if link %}</a>{% else %}</span>{% endif %}
|
|
{%- else -%}
|
|
<span>{{ route|default(controller) }}</span>
|
|
{%- endif %}
|
|
{% endmacro %}
|
|
", "@WebProfiler/Collector/request.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/request.html.twig");
|
|
}
|
|
}
|