$frontendThemeDirectory =
Shopware()->
Container()->
get(PathResolver::
class)->
getFrontendThemeDirectory();
$this->_template =
clone Shopware()->
Template();
$this->_view =
$this->_template->
createData();
$path =
basename($this->_subshop
['doc_template'
]);
if ($this->_template->security_policy
) { $this->_template->security_policy->secure_dir
[] =
$frontendThemeDirectory . DIRECTORY_SEPARATOR .
$path;
} $this->_template->
setTemplateDir(['custom' =>
$path]);
$this->_template->
setCompileId(str_replace('/', '_',
$path) . '_' .
$this->_subshop
['id'
]);
} /**
* Sets the translation component
*
* @throws Exception
*/
protected function setTranslationComponent() { $this->translationComponent =
Shopware()->
Container()->
get(Shopware_Components_Translation::
class);
}