public function __construct(ViewInterface $view, array $options = [])
{
parent::__construct($view);
$this->setTemplateParser(new TemplateParser());
$this->setViewHelperResolver(new ViewHelperResolver());
$this->setTemplateProcessors([new EscapingFlagProcessor(), new NamespaceDetectionTemplateProcessor()]);
$this->setTemplatePaths(new TemplatePaths($options));
$this->setVariableProvider(new TemplateVariableContainer());
}