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 " \"Database\" "; $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 "

Queries

"; // line 27 if ((!$this->getAttribute($this->getContext($context, 'collector'), "querycount", array(), "any", false))) { // line 28 echo "

No queries.

"; } else { // line 32 echo " "; } // line 46 echo "

Database Connections

"; // line 49 if ($this->getAttribute($this->getContext($context, 'collector'), "connections", array(), "any", false)) { // line 50 echo " "; // line 55 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "connections", array(), "any", false)); foreach ($context['_seq'] as $context['name'] => $context['service']) { // line 56 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['service'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 61 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 "
"; } else { // line 63 echo "

No entity managers.

"; } // line 67 echo "

Entity Managers

"; // line 70 if ($this->getAttribute($this->getContext($context, 'collector'), "managers", array(), "any", false)) { // line 71 echo " "; // line 76 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'collector'), "managers", array(), "any", false)); foreach ($context['_seq'] as $context['name'] => $context['service']) { // line 77 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['service'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 82 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 "
"; } else { // line 84 echo "

No entity managers.

"; } } public function getTemplateName() { return "DoctrineBundle:Collector:db.html.twig"; } public function isTraitable() { return false; } }