/** * Tpl constructor. */ function __construct(Cache $Cache, Translate $Translate) { $this->Cache = $Cache; $this->Translate = $Translate; $this->Cache->setConfig($this->config); self::$hash = $this->Cache->get('arh.tpl.hash'); }
function __construct(Cache $Cache, Translate $Translate, array $config = []) { $this->Cache = $Cache; $this->Translate = $Translate; $this->mergeConfig($config); self::$hash = $this->Cache->get('arh.tpl.hash'); }