public function setTemplateDir(string $templateDir): self
    {
        $this->templateDir = rtrim($templateDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
        $this->logger->debug("Template directory set to loader." , ["templateDir" => $this->templateDir]);
        return $this;
    }
public function setTemplateDir(string $templateDir): self
    {
        $this->templateDir = rtrim($templateDir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
        $this->logger->debug("Template directory set to loader." , ["templateDir" => $this->templateDir]);
        return $this;
    }
public function setTemplateDir ( string $ templateDir ) : self { $ this -> templateDir = rtrim ( $ templateDir , DIRECTORY_SEPARATOR ) . DIRECTORY_SEPARATOR ; $ this -> logger -> debug ( "Template directory set to loader." , [ "templateDir" => $ this -> templateDir ] ) ; return $ this ; }
Set the template directory

Sets the template directory name.

@param string $templateDir Name of the template directory
@return self
Set the template directory