/** * Fetch a template's modification time from data source * * @param string $name template name * * @return integer timestamp (epoch) the template was modified */ protected function fetchTimestamp($name) { $asset = $this->fileResolver->resolveTemplatePath($name); return filemtime($asset); }
/** * @inheritdoc */ public function process(array $params, \Smarty_Internal_Template $smarty) { return $this->fileResolver->resolveTemplatePath($params['path']); }