$this->
addExtension(new CoreExtension());
$this->
addExtension(new EscaperExtension($options['autoescape'
]));
$this->
addExtension(new OptimizerExtension($options['optimizations'
]));
} /**
* Enables debugging mode.
*/
public function enableDebug() { $this->debug = true;
$this->
updateOptionsHash();
} /**
* Disables debugging mode.
*/
public function disableDebug() { $this->debug = false;
$this->
updateOptionsHash();
}