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 " \"Security\" "; $context['icon'] = new Twig_Markup(ob_get_clean()); // line 7 echo " "; ob_start(); // line 8 echo " "; if ($this->getAttribute($this->getContext($context, 'collector'), "user", array(), "any", false)) { // line 9 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "user", array(), "any", false), "html"); echo " "; if ((!$this->getAttribute($this->getContext($context, 'collector'), "authenticated", array(), "any", false))) { echo "(not auth.)"; } // line 10 echo " "; } elseif ($this->getAttribute($this->getContext($context, 'collector'), "enabled", array(), "any", false)) { // line 11 echo " not authenticated "; } else { // line 13 echo " disabled "; } // line 15 echo " "; $context['text'] = new Twig_Markup(ob_get_clean()); // line 16 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url')))); } // line 19 public function block_menu($context, array $blocks = array()) { // line 20 echo " env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/security.png"), "html"); echo "\" alt=\"\" /> Security "; } // line 26 public function block_panel($context, array $blocks = array()) { // line 27 echo "

Security

"; // line 28 if ($this->getAttribute($this->getContext($context, 'collector'), "user", array(), "any", false)) { // line 29 echo "
Username "; // line 32 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "user", array(), "any", false), "html"); echo "
Authenticated? "; // line 37 if ($this->getAttribute($this->getContext($context, 'collector'), "authenticated", array(), "any", false)) { // line 38 echo " yes "; } else { // line 40 echo " no "; if ((!twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "roles", array(), "any", false)))) { echo "(probably because the user has no roles)"; } // line 41 echo " "; } // line 42 echo "
Roles "; // line 46 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute($this->getContext($context, 'collector'), "roles", array(), "any", false)), "html"); echo "
"; } elseif ($this->getAttribute($this->getContext($context, 'collector'), "enabled", array(), "any", false)) { // line 50 echo "

No token

"; } else { // line 54 echo "

The security component is disabled

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