parent = array();
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'menu' => array($this, 'block_menu'),
'panel' => array($this, 'block_panel'),
);
}
public function getParent(array $context)
{
$parent = "WebProfilerBundle:Profiler:layout.html.twig";
if ($parent instanceof Twig_Template) {
$name = $parent->getTemplateName();
$this->parent[$name] = $parent;
$parent = $name;
} elseif (!isset($this->parent[$parent])) {
$this->parent[$parent] = $this->env->loadTemplate($parent);
}
return $this->parent[$parent];
}
protected function doDisplay(array $context, array $blocks = array())
{
$context = array_merge($this->env->getGlobals(), $context);
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_toolbar($context, array $blocks = array())
{
// line 4
echo " ";
ob_start();
// line 5
echo "
";
$context['icon'] = new Twig_Markup(ob_get_clean());
// line 7
echo " ";
ob_start();
// line 8
echo " env, sprintf("%0.2f", ($this->getAttribute($this->getContext($context, 'collector'), "time", array(), "any", false) * 1000)), "html");
echo " ms\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false), "html");
echo "
";
$context['text'] = new Twig_Markup(ob_get_clean());
// line 10
echo " ";
$this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url'))));
}
// line 13
public function block_menu($context, array $blocks = array())
{
// line 14
echo "
env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/db.png"), "html");
echo "\" alt=\"\" />
Doctrine
";
// line 18
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false), "html");
echo "
";
// line 19
echo twig_escape_filter($this->env, sprintf("%0.0f", ($this->getAttribute($this->getContext($context, 'collector'), "time", array(), "any", false) * 1000)), "html");
echo " ms
";
}
// line 24
public function block_panel($context, array $blocks = array())
{
// line 25
echo "
No queries.
"; } else { // line 32 echo "";
// line 36
echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'query'), "sql", array(), "any", false), "html");
echo "
Name | Service |
---|---|
"; // line 57 echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html"); echo " | "; // line 58 echo twig_escape_filter($this->env, $this->getContext($context, 'service'), "html"); echo " |
No entity managers.
"; } // line 67 echo "Name | Service |
---|---|
"; // line 78 echo twig_escape_filter($this->env, $this->getContext($context, 'name'), "html"); echo " | "; // line 79 echo twig_escape_filter($this->env, $this->getContext($context, 'service'), "html"); echo " |
No entity managers.
"; } } public function getTemplateName() { return "DoctrineBundle:Collector:db.html.twig"; } public function isTraitable() { return false; } }