/**
* @inheritdoc
*/
public function setTemplateName($templateName)
{
if (null === $this->templatingEngine) {
throw new TemplatingException('Set template engine first');
}
if (!$this->templatingEngine->supports($templateName)) {
throw new TemplateNotSupportedException(sprintf('Template %s is not supported by templating engine', $templateName));
}
$this->templateName = $templateName;
}