/** * Gets the 'templating' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine A Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine instance. */ protected function getTemplatingService() { $this->services['templating'] = $instance = new \Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine($this, array()); $instance->addEngine($this->get('debug.templating.engine.twig')); $instance->addEngine($this->get('templating.engine.eztpl')); return $instance; }
/** * Gets the 'templating' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine A Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine instance. */ protected function getTemplatingService() { $a = $this->get('debug.templating.engine.php'); $b = $this->get('twig'); $c = $this->get('templating.name_parser'); $d = $this->get('templating.locator'); $e = new \Symfony\Bundle\TwigBundle\TwigEngine($b, $c, $d); $this->services['templating'] = $instance = new \Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine($this, array()); $instance->addEngine($e); $instance->addEngine($a); $instance->addEngine($e); $instance->addEngine($a); return $instance; }
protected function getTemplatingService() { $this->services['templating'] = $instance = new \Symfony\Bundle\FrameworkBundle\Templating\DelegatingEngine($this, array()); $instance->addEngine(new \Symfony\Bundle\TwigBundle\TwigEngine($this->get('twig'), $this->get('templating.name_parser'), $this->get('templating.locator'))); $instance->addEngine($this->get('templating.engine.php')); return $instance; }