public function setTemplatePaths(TemplatePaths $templatePaths)
{
$this->setTemplateRootPaths($templatePaths->getTemplateRootPaths());
$this->setLayoutRootPaths($templatePaths->getLayoutRootPaths());
$this->setPartialRootPaths($templatePaths->getPartialRootPaths());
}