parent = array(); $this->blocks = array( 'content' => array($this, 'block_content'), ); } public function getParent(array $context) { $parent = "AcmeDemoBundle::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); // line 29 $context['code'] = $this->env->getExtension('demo')->getCode($this); $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_content($context, array $blocks = array()) { // line 4 echo "
Choose between two default users: user/userpass (ROLE_USER) or admin/adminpass (ROLE_ADMIN)
"; // line 10 if ($this->getContext($context, 'error')) { // line 11 echo "