401 lines
21 KiB
PHP
401 lines
21 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;
|
|
|
|
/* @Debug/Profiler/dump.html.twig */
|
|
class __TwigTemplate_d7eadf2c9645ac971ec892972230b1df8a9bd45205d0bc920652316b44c71fee extends \Twig\Template
|
|
{
|
|
private $source;
|
|
private $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->blocks = [
|
|
'toolbar' => [$this, 'block_toolbar'],
|
|
'menu' => [$this, 'block_menu'],
|
|
'panel' => [$this, 'block_panel'],
|
|
];
|
|
}
|
|
|
|
protected function doGetParent(array $context)
|
|
{
|
|
// line 1
|
|
return "@WebProfiler/Profiler/layout.html.twig";
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Debug/Profiler/dump.html.twig"));
|
|
|
|
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@Debug/Profiler/dump.html.twig", 1);
|
|
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 3
|
|
public function block_toolbar($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
|
|
|
|
// line 4
|
|
echo " ";
|
|
if (twig_get_attribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 4, $this->source); })()), "dumpsCount", [], "any", false, false, false, 4)) {
|
|
// line 5
|
|
echo " ";
|
|
ob_start();
|
|
// line 6
|
|
echo " ";
|
|
echo twig_include($this->env, $context, "@Debug/Profiler/icon.svg");
|
|
echo "
|
|
<span class=\"sf-toolbar-value\">";
|
|
// line 7
|
|
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.', 7, $this->source); })()), "dumpsCount", [], "any", false, false, false, 7), "html", null, true);
|
|
echo "</span>
|
|
";
|
|
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 9
|
|
echo "
|
|
";
|
|
// line 10
|
|
ob_start();
|
|
// line 11
|
|
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.', 11, $this->source); })()), "getDumps", [0 => "html"], "method", false, false, false, 11));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["dump"]) {
|
|
// line 12
|
|
echo " <div class=\"sf-toolbar-info-piece\">
|
|
<span>
|
|
";
|
|
// line 14
|
|
if (twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 14)) {
|
|
// line 15
|
|
echo " ";
|
|
$context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 15), twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 15));
|
|
// line 16
|
|
echo " ";
|
|
if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 16, $this->source); })())) {
|
|
// line 17
|
|
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.', 17, $this->source); })()), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 17), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 17), "html", null, true);
|
|
echo "</a>
|
|
";
|
|
} else {
|
|
// line 19
|
|
echo " <abbr title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 19), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 19), "html", null, true);
|
|
echo "</abbr>
|
|
";
|
|
}
|
|
// line 21
|
|
echo " ";
|
|
} else {
|
|
// line 22
|
|
echo " ";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 22), "html", null, true);
|
|
echo "
|
|
";
|
|
}
|
|
// line 24
|
|
echo " </span>
|
|
<span class=\"sf-toolbar-file-line\">line ";
|
|
// line 25
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 25), "html", null, true);
|
|
echo "</span>
|
|
|
|
";
|
|
// line 27
|
|
echo twig_get_attribute($this->env, $this->source, $context["dump"], "data", [], "any", false, false, false, 27);
|
|
echo "
|
|
</div>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dump'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 30
|
|
echo " <img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" onload=\"var h = this.parentNode.innerHTML, rx=/<script>(.*?)<\\/script>/g, s; while (s = rx.exec(h)) {eval(s[1]);};\" />
|
|
";
|
|
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
|
|
// line 32
|
|
echo "
|
|
";
|
|
// line 33
|
|
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => true]);
|
|
echo "
|
|
";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 37
|
|
public function block_menu($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
|
|
|
|
// line 38
|
|
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.', 38, $this->source); })()), "dumpsCount", [], "any", false, false, false, 38) == 0)) ? ("disabled") : (""));
|
|
echo "\">
|
|
<span class=\"icon\">";
|
|
// line 39
|
|
echo twig_include($this->env, $context, "@Debug/Profiler/icon.svg");
|
|
echo "</span>
|
|
<strong>Debug</strong>
|
|
</span>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 44
|
|
public function block_panel($context, array $blocks = [])
|
|
{
|
|
$macros = $this->macros;
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
|
|
|
|
// line 45
|
|
echo " <h2>Dumped Contents</h2>
|
|
|
|
";
|
|
// line 47
|
|
$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.', 47, $this->source); })()), "getDumps", [0 => "html"], "method", false, false, false, 47));
|
|
$context['_iterated'] = false;
|
|
$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["dump"]) {
|
|
// line 48
|
|
echo " <div class=\"sf-dump sf-reset\">
|
|
<h3>In
|
|
";
|
|
// line 50
|
|
if (twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 50)) {
|
|
// line 51
|
|
echo " ";
|
|
$context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 51), twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 51));
|
|
// line 52
|
|
echo " ";
|
|
if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 52, $this->source); })())) {
|
|
// line 53
|
|
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.', 53, $this->source); })()), "html", null, true);
|
|
echo "\" title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 53), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 53), "html", null, true);
|
|
echo "</a>
|
|
";
|
|
} else {
|
|
// line 55
|
|
echo " <abbr title=\"";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 55), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 55), "html", null, true);
|
|
echo "</abbr>
|
|
";
|
|
}
|
|
// line 57
|
|
echo " ";
|
|
} else {
|
|
// line 58
|
|
echo " ";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "name", [], "any", false, false, false, 58), "html", null, true);
|
|
echo "
|
|
";
|
|
}
|
|
// line 60
|
|
echo " <small>line ";
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 60), "html", null, true);
|
|
echo "</small>
|
|
|
|
<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
|
|
// line 62
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 62), "html", null, true);
|
|
echo "\" data-toggle-alt-content=\"Hide code\">Show code</a>
|
|
</h3>
|
|
|
|
<div class=\"sf-dump-compact hidden\" id=\"sf-trace-";
|
|
// line 65
|
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 65), "html", null, true);
|
|
echo "\">
|
|
<div class=\"trace\">
|
|
";
|
|
// line 67
|
|
echo ((twig_get_attribute($this->env, $this->source, $context["dump"], "fileExcerpt", [], "any", false, false, false, 67)) ? (twig_get_attribute($this->env, $this->source, $context["dump"], "fileExcerpt", [], "any", false, false, false, 67)) : ($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env, $this->source, $context["dump"], "file", [], "any", false, false, false, 67), twig_get_attribute($this->env, $this->source, $context["dump"], "line", [], "any", false, false, false, 67))));
|
|
echo "
|
|
</div>
|
|
</div>
|
|
|
|
";
|
|
// line 71
|
|
echo twig_get_attribute($this->env, $this->source, $context["dump"], "data", [], "any", false, false, false, 71);
|
|
echo "
|
|
</div>
|
|
";
|
|
$context['_iterated'] = true;
|
|
++$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'];
|
|
}
|
|
}
|
|
if (!$context['_iterated']) {
|
|
// line 74
|
|
echo " <div class=\"empty\">
|
|
<p>No content was dumped.</p>
|
|
</div>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dump'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@Debug/Profiler/dump.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 291 => 74, 275 => 71, 268 => 67, 263 => 65, 257 => 62, 251 => 60, 245 => 58, 242 => 57, 234 => 55, 224 => 53, 221 => 52, 218 => 51, 216 => 50, 212 => 48, 194 => 47, 190 => 45, 183 => 44, 172 => 39, 167 => 38, 160 => 37, 150 => 33, 147 => 32, 143 => 30, 134 => 27, 129 => 25, 126 => 24, 120 => 22, 117 => 21, 109 => 19, 99 => 17, 96 => 16, 93 => 15, 91 => 14, 87 => 12, 82 => 11, 80 => 10, 77 => 9, 72 => 7, 67 => 6, 64 => 5, 61 => 4, 54 => 3, 37 => 1,);
|
|
}
|
|
|
|
public function getSourceContext()
|
|
{
|
|
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
|
|
|
{% block toolbar %}
|
|
{% if collector.dumpsCount %}
|
|
{% set icon %}
|
|
{{ include('@Debug/Profiler/icon.svg') }}
|
|
<span class=\"sf-toolbar-value\">{{ collector.dumpsCount }}</span>
|
|
{% endset %}
|
|
|
|
{% set text %}
|
|
{% for dump in collector.getDumps('html') %}
|
|
<div class=\"sf-toolbar-info-piece\">
|
|
<span>
|
|
{% if dump.file %}
|
|
{% set link = dump.file|file_link(dump.line) %}
|
|
{% if link %}
|
|
<a href=\"{{ link }}\" title=\"{{ dump.file }}\">{{ dump.name }}</a>
|
|
{% else %}
|
|
<abbr title=\"{{ dump.file }}\">{{ dump.name }}</abbr>
|
|
{% endif %}
|
|
{% else %}
|
|
{{ dump.name }}
|
|
{% endif %}
|
|
</span>
|
|
<span class=\"sf-toolbar-file-line\">line {{ dump.line }}</span>
|
|
|
|
{{ dump.data|raw }}
|
|
</div>
|
|
{% endfor %}
|
|
<img src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" onload=\"var h = this.parentNode.innerHTML, rx=/<script>(.*?)<\\/script>/g, s; while (s = rx.exec(h)) {eval(s[1]);};\" />
|
|
{% endset %}
|
|
|
|
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': true }) }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block menu %}
|
|
<span class=\"label {{ collector.dumpsCount == 0 ? 'disabled' }}\">
|
|
<span class=\"icon\">{{ include('@Debug/Profiler/icon.svg') }}</span>
|
|
<strong>Debug</strong>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block panel %}
|
|
<h2>Dumped Contents</h2>
|
|
|
|
{% for dump in collector.getDumps('html') %}
|
|
<div class=\"sf-dump sf-reset\">
|
|
<h3>In
|
|
{% if dump.line %}
|
|
{% set link = dump.file|file_link(dump.line) %}
|
|
{% if link %}
|
|
<a href=\"{{ link }}\" title=\"{{ dump.file }}\">{{ dump.name }}</a>
|
|
{% else %}
|
|
<abbr title=\"{{ dump.file }}\">{{ dump.name }}</abbr>
|
|
{% endif %}
|
|
{% else %}
|
|
{{ dump.name }}
|
|
{% endif %}
|
|
<small>line {{ dump.line }}</small>
|
|
|
|
<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-{{ loop.index0 }}\" data-toggle-alt-content=\"Hide code\">Show code</a>
|
|
</h3>
|
|
|
|
<div class=\"sf-dump-compact hidden\" id=\"sf-trace-{{ loop.index0 }}\">
|
|
<div class=\"trace\">
|
|
{{ dump.fileExcerpt ? dump.fileExcerpt|raw : dump.file|file_excerpt(dump.line) }}
|
|
</div>
|
|
</div>
|
|
|
|
{{ dump.data|raw }}
|
|
</div>
|
|
{% else %}
|
|
<div class=\"empty\">
|
|
<p>No content was dumped.</p>
|
|
</div>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
", "@Debug/Profiler/dump.html.twig", "/Users/kadmin/Websites/sterntours-3/vendor/symfony/symfony/src/Symfony/Bundle/DebugBundle/Resources/views/Profiler/dump.html.twig");
|
|
}
|
|
}
|