public function setTemplateFactory(ITemplateFactory $templateFactory) { $this->templateFactory = $templateFactory; }