/** * Delete the compiled version of a template. * @param $templateName * @return bool */ public function deleteCompiledFile($templateName) { $className = $this->jigConverter->getClassNameFromFilename($templateName); $compileFilename = $this->jigConfig->getCompiledFilenameFromClassname($className); $deleted = @unlink($compileFilename); return $deleted; }
/** * @param $templateName * @return string */ public static function getCompiledFilenameInternal($templateName, JigConverter $jigConverter, JigConfig $jigConfig) { $className = $jigConverter->getClassNameFromFilename($templateName); $compiledFilename = $jigConfig->getCompiledFilenameFromClassname($className); return $compiledFilename; }