var/cache/dev/twig/dd/dd65ce09166395dca6a5f70b92872d8f.php line 50
<?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/twig.html.twig */
class __TwigTemplate_bded113e537e210d6374a7cb5639d6fb 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'],
'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_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/twig.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/twig.html.twig"));
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/twig.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_toolbar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
// line 4
echo " ";
$context["time"] = ((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); })()), "templatecount", [], "any", false, false, false, 4)) ? (twig_sprintf("%0.0f", 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); })()), "time", [], "any", false, false, false, 4))) : ("n/a"));
// line 5
echo " ";
ob_start();
// line 6
echo " ";
echo twig_source($this->env, "@WebProfiler/Icon/twig.svg");
echo "
<span class=\"sf-toolbar-value\">";
// line 7
echo twig_escape_filter($this->env, (isset($context["time"]) || array_key_exists("time", $context) ? $context["time"] : (function () { throw new RuntimeError('Variable "time" does not exist.', 7, $this->source); })()), "html", null, true);
echo "</span>
<span class=\"sf-toolbar-label\">ms</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 10
echo "
";
// line 11
ob_start();
// line 12
echo " <div class=\"sf-toolbar-info-piece\">
<b>Render Time</b>
<span>";
// line 14
echo twig_escape_filter($this->env, (isset($context["time"]) || array_key_exists("time", $context) ? $context["time"] : (function () { throw new RuntimeError('Variable "time" does not exist.', 14, $this->source); })()), "html", null, true);
echo " ms</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Template Calls</b>
<span class=\"sf-toolbar-status\">";
// line 18
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.', 18, $this->source); })()), "templatecount", [], "any", false, false, false, 18), "html", null, true);
echo "</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Block Calls</b>
<span class=\"sf-toolbar-status\">";
// line 22
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.', 22, $this->source); })()), "blockcount", [], "any", false, false, false, 22), "html", null, true);
echo "</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Macro Calls</b>
<span class=\"sf-toolbar-status\">";
// line 26
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.', 26, $this->source); })()), "macrocount", [], "any", false, false, false, 26), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 29
echo "
";
// line 30
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 30, $this->source); })())]);
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 33
public function block_menu($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 34
echo " <span class=\"label ";
echo (((0 == 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.', 34, $this->source); })()), "templateCount", [], "any", false, false, false, 34))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 35
echo twig_source($this->env, "@WebProfiler/Icon/twig.svg");
echo "</span>
<strong>Twig</strong>
</span>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 40
public function block_panel($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
// line 41
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.', 41, $this->source); })()), "templatecount", [], "any", false, false, false, 41) == 0)) {
// line 42
echo " <h2>Twig</h2>
<div class=\"empty empty-panel\">
<p>No Twig templates were rendered for this request.</p>
</div>
";
} else {
// line 48
echo " <h2>Twig Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 52
echo twig_escape_filter($this->env, twig_sprintf("%0.0f", 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.', 52, $this->source); })()), "time", [], "any", false, false, false, 52)), "html", null, true);
echo " <span class=\"unit\">ms</span></span>
<span class=\"label\">Render time</span>
</div>
<div class=\"metric-divider\"></div>
<div class=\"metric-group\">
<div class=\"metric\">
<span class=\"value\">";
// line 60
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.', 60, $this->source); })()), "templatecount", [], "any", false, false, false, 60), "html", null, true);
echo "</span>
<span class=\"label\">Template calls</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 65
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.', 65, $this->source); })()), "blockcount", [], "any", false, false, false, 65), "html", null, true);
echo "</span>
<span class=\"label\">Block calls</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 70
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.', 70, $this->source); })()), "macrocount", [], "any", false, false, false, 70), "html", null, true);
echo "</span>
<span class=\"label\">Macro calls</span>
</div>
</div>
</div>
<p class=\"help\">
Render time includes sub-requests rendering time (if any).
</p>
<h2>Rendered Templates</h2>
<table id=\"twig-table\">
<thead>
<tr>
<th scope=\"col\">Template Name & Path</th>
<th class=\"num-col\" scope=\"col\">Render Count</th>
</tr>
</thead>
<tbody>
";
// line 90
$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.', 90, $this->source); })()), "templates", [], "any", false, false, false, 90));
foreach ($context['_seq'] as $context["template"] => $context["count"]) {
// line 91
echo " <tr>
";
// line 92
$context["file"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "templatePaths", [], "any", false, true, false, 92), $context["template"], [], "array", true, true, false, 92)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "templatePaths", [], "any", false, true, false, 92), $context["template"], [], "array", false, false, false, 92), false)) : (false));
// line 93
echo " ";
$context["link"] = (((isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 93, $this->source); })())) ? ($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink((isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 93, $this->source); })()), 1)) : (false));
// line 94
echo " <td class=\"font-normal\">
";
// line 95
if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 95, $this->source); })())) {
// line 96
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.', 96, $this->source); })()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, (isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 96, $this->source); })()), "html", null, true);
echo "\" class=\"stretched-link\">
";
// line 97
echo twig_escape_filter($this->env, $context["template"], "html", null, true);
echo "
<span class=\"template-file-path\">";
// line 98
echo twig_escape_filter($this->env, _twig_default_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileRelative((isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 98, $this->source); })())), (isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 98, $this->source); })())), "html", null, true);
echo "</span>
</a>
";
} else {
// line 101
echo " ";
echo twig_escape_filter($this->env, $context["template"], "html", null, true);
echo "
";
}
// line 103
echo " </td>
<td class=\"font-normal num-col\">";
// line 104
echo twig_escape_filter($this->env, $context["count"], "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['template'], $context['count'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 107
echo " </tbody>
</table>
<h2>Rendering Call Graph</h2>
<div id=\"twig-dump\">
";
// line 113
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.', 113, $this->source); })()), "htmlcallgraph", [], "any", false, false, false, 113), "html", null, true);
echo "
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@WebProfiler/Collector/twig.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 304 => 113, 296 => 107, 287 => 104, 284 => 103, 278 => 101, 272 => 98, 268 => 97, 261 => 96, 259 => 95, 256 => 94, 253 => 93, 251 => 92, 248 => 91, 244 => 90, 221 => 70, 213 => 65, 205 => 60, 194 => 52, 188 => 48, 180 => 42, 177 => 41, 167 => 40, 153 => 35, 148 => 34, 138 => 33, 126 => 30, 123 => 29, 117 => 26, 110 => 22, 103 => 18, 96 => 14, 92 => 12, 90 => 11, 87 => 10, 81 => 7, 76 => 6, 73 => 5, 70 => 4, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% block toolbar %}
{% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %}
{% set icon %}
{{ source('@WebProfiler/Icon/twig.svg') }}
<span class=\"sf-toolbar-value\">{{ time }}</span>
<span class=\"sf-toolbar-label\">ms</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Render Time</b>
<span>{{ time }} ms</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Template Calls</b>
<span class=\"sf-toolbar-status\">{{ collector.templatecount }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Block Calls</b>
<span class=\"sf-toolbar-status\">{{ collector.blockcount }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Macro Calls</b>
<span class=\"sf-toolbar-status\">{{ collector.macrocount }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
{% endblock %}
{% block menu %}
<span class=\"label {{ 0 == collector.templateCount ? 'disabled' }}\">
<span class=\"icon\">{{ source('@WebProfiler/Icon/twig.svg') }}</span>
<strong>Twig</strong>
</span>
{% endblock %}
{% block panel %}
{% if collector.templatecount == 0 %}
<h2>Twig</h2>
<div class=\"empty empty-panel\">
<p>No Twig templates were rendered for this request.</p>
</div>
{% else %}
<h2>Twig Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ '%0.0f'|format(collector.time) }} <span class=\"unit\">ms</span></span>
<span class=\"label\">Render time</span>
</div>
<div class=\"metric-divider\"></div>
<div class=\"metric-group\">
<div class=\"metric\">
<span class=\"value\">{{ collector.templatecount }}</span>
<span class=\"label\">Template calls</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.blockcount }}</span>
<span class=\"label\">Block calls</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.macrocount }}</span>
<span class=\"label\">Macro calls</span>
</div>
</div>
</div>
<p class=\"help\">
Render time includes sub-requests rendering time (if any).
</p>
<h2>Rendered Templates</h2>
<table id=\"twig-table\">
<thead>
<tr>
<th scope=\"col\">Template Name & Path</th>
<th class=\"num-col\" scope=\"col\">Render Count</th>
</tr>
</thead>
<tbody>
{% for template, count in collector.templates %}
<tr>
{% set file = collector.templatePaths[template]|default(false) %}
{% set link = file ? file|file_link(1) : false %}
<td class=\"font-normal\">
{% if link %}
<a href=\"{{ link }}\" title=\"{{ file }}\" class=\"stretched-link\">
{{ template }}
<span class=\"template-file-path\">{{ file|file_relative|default(file) }}</span>
</a>
{% else %}
{{ template }}
{% endif %}
</td>
<td class=\"font-normal num-col\">{{ count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>Rendering Call Graph</h2>
<div id=\"twig-dump\">
{{ collector.htmlcallgraph }}
</div>
{% endif %}
{% endblock %}
", "@WebProfiler/Collector/twig.html.twig", "/home/bestofi/bestof/vendor/symfony/web-profiler-bundle/Resources/views/Collector/twig.html.twig");
}
}