477 lines
26 KiB
PHP
477 lines
26 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/twig.html.twig */
|
|
class __TwigTemplate_9c70f77e580d0aab07feddb7956e2ec03b316c7a3da1df74eeb6afca72b71774 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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/twig.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/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_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
}
|
|
|
|
// line 3
|
|
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 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_include($this->env, $context, "@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_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 33
|
|
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 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_include($this->env, $context, "@WebProfiler/Icon/twig.svg");
|
|
echo "</span>
|
|
<strong>Twig</strong>
|
|
</span>
|
|
";
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
// line 40
|
|
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 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\">
|
|
<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\">
|
|
<span class=\"value\">";
|
|
// line 57
|
|
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.', 57, $this->source); })()), "templatecount", [], "any", false, false, false, 57), "html", null, true);
|
|
echo "</span>
|
|
<span class=\"label\">Template calls</span>
|
|
</div>
|
|
|
|
<div class=\"metric\">
|
|
<span class=\"value\">";
|
|
// line 62
|
|
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.', 62, $this->source); })()), "blockcount", [], "any", false, false, false, 62), "html", null, true);
|
|
echo "</span>
|
|
<span class=\"label\">Block calls</span>
|
|
</div>
|
|
|
|
<div class=\"metric\">
|
|
<span class=\"value\">";
|
|
// line 67
|
|
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.', 67, $this->source); })()), "macrocount", [], "any", false, false, false, 67), "html", null, true);
|
|
echo "</span>
|
|
<span class=\"label\">Macro calls</span>
|
|
</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 86
|
|
$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.', 86, $this->source); })()), "templates", [], "any", false, false, false, 86));
|
|
$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["template"] => $context["count"]) {
|
|
// line 87
|
|
echo " <tr>";
|
|
// line 88
|
|
$context["file"] = ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["collector"] ?? null), "templatePaths", [], "any", false, true, false, 88), $context["template"], [], "array", true, true, false, 88)) ? (_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, 88), $context["template"], [], "array", false, false, false, 88), false)) : (false));
|
|
// line 89
|
|
$context["link"] = (((isset($context["file"]) || array_key_exists("file", $context) ? $context["file"] : (function () { throw new RuntimeError('Variable "file" does not exist.', 89, $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.', 89, $this->source); })()), 1)) : (false));
|
|
// line 90
|
|
echo "<td>
|
|
<span class=\"sf-icon icon-twig\">";
|
|
// line 91
|
|
echo twig_include($this->env, $context, "@WebProfiler/Icon/twig.svg");
|
|
echo "</span>
|
|
";
|
|
// line 92
|
|
if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 92, $this->source); })())) {
|
|
// line 93
|
|
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.', 93, $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.', 93, $this->source); })()), "html", null, true);
|
|
echo "\">";
|
|
echo twig_escape_filter($this->env, $context["template"], "html", null, true);
|
|
echo "</a>
|
|
<div>
|
|
<a class=\"text-muted\" href=\"";
|
|
// line 95
|
|
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.', 95, $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.', 95, $this->source); })()), "html", null, true);
|
|
echo "\">
|
|
";
|
|
// line 96
|
|
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.', 96, $this->source); })())), (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 "
|
|
</a>
|
|
</div>
|
|
";
|
|
} else {
|
|
// line 100
|
|
echo " ";
|
|
echo twig_escape_filter($this->env, $context["template"], "html", null, true);
|
|
echo "
|
|
";
|
|
}
|
|
// line 102
|
|
echo " </td>
|
|
<td class=\"font-normal num-col\">";
|
|
// line 103
|
|
echo twig_escape_filter($this->env, $context["count"], "html", null, true);
|
|
echo "</td>
|
|
</tr>
|
|
";
|
|
++$context['loop']['index0'];
|
|
++$context['loop']['index'];
|
|
$context['loop']['first'] = false;
|
|
if (isset($context['loop']['length'])) {
|
|
--$context['loop']['revindex0'];
|
|
--$context['loop']['revindex'];
|
|
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
|
|
}
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_iterated'], $context['template'], $context['count'], $context['_parent'], $context['loop']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 106
|
|
echo " </tbody>
|
|
</table>
|
|
|
|
<h2>Rendering Call Graph</h2>
|
|
|
|
<div id=\"twig-dump\">
|
|
";
|
|
// line 112
|
|
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.', 112, $this->source); })()), "htmlcallgraph", [], "any", false, false, false, 112), "html", null, true);
|
|
echo "
|
|
</div>
|
|
";
|
|
}
|
|
|
|
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
|
|
|
|
|
|
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
|
|
|
|
}
|
|
|
|
public function getTemplateName()
|
|
{
|
|
return "@WebProfiler/Collector/twig.html.twig";
|
|
}
|
|
|
|
public function isTraitable()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public function getDebugInfo()
|
|
{
|
|
return array ( 329 => 112, 321 => 106, 304 => 103, 301 => 102, 295 => 100, 288 => 96, 282 => 95, 272 => 93, 270 => 92, 266 => 91, 263 => 90, 261 => 89, 259 => 88, 257 => 87, 240 => 86, 218 => 67, 210 => 62, 202 => 57, 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 %}
|
|
{{ include('@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\">{{ include('@WebProfiler/Icon/twig.svg') }}</span>
|
|
<strong>Twig</strong>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block panel %}
|
|
{% if collector.templatecount == 0 %}
|
|
<h2>Twig</h2>
|
|
|
|
<div class=\"empty\">
|
|
<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\">
|
|
<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>
|
|
|
|
<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>
|
|
<span class=\"sf-icon icon-twig\">{{ include('@WebProfiler/Icon/twig.svg') }}</span>
|
|
{% if link %}
|
|
<a href=\"{{ link }}\" title=\"{{ file }}\">{{ template }}</a>
|
|
<div>
|
|
<a class=\"text-muted\" href=\"{{ link }}\" title=\"{{ file }}\">
|
|
{{ file|file_relative|default(file) }}
|
|
</a>
|
|
</div>
|
|
{% 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/poule/encrypted/stockage-syncable/www/development/html/caisse/vendor/symfony/web-profiler-bundle/Resources/views/Collector/twig.html.twig");
|
|
}
|
|
}
|