/**
* Get (init if necessary) twig environment
*
* @param boolean $reset Force re-initialization (helpful for UTs)
*
* @return \Twig_Environment
*/
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;
}