protected function getEnvironment($reset = false) { if ($reset === true || null === $this->twig) { $this->twig = new \Twig_Environment($this->getLoader(), $this->getConfig()); $this->twig->removeExtension('escaper'); } return $this->twig; }