/** * @return TemplateBuilder */ public function getTemplateBuilder() { if ($this->templateBuilder === null) { $templatePath = $this->configParams->getAppTemplatePath(); $this->templateBuilder = new TemplateBuilder($templatePath); } return $this->templateBuilder; }