X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ftemplate%2Fmenu%2Fclass_MenuTemplateEngine.php;h=d29af28ccf0da86bc48404496391b2799d8ee422;hp=a0c75eb224263e5b3106dc11d1e717c07fd80a5e;hb=b9bfbe86c031c9d83c3670602906df191a33ba2a;hpb=5da8f717122568335b8a8ab230fa0de17e983fab diff --git a/framework/main/classes/template/menu/class_MenuTemplateEngine.php b/framework/main/classes/template/menu/class_MenuTemplateEngine.php index a0c75eb2..d29af28c 100644 --- a/framework/main/classes/template/menu/class_MenuTemplateEngine.php +++ b/framework/main/classes/template/menu/class_MenuTemplateEngine.php @@ -11,6 +11,7 @@ use CoreFramework\Template\CompileableTemplate; use CoreFramework\Template\Engine\BaseTemplateEngine; // Import SPL stuff +use \SplFileInfo; use \UnexpectedValueException; /** @@ -865,16 +866,16 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla } /** - * Getter for menu cache file (FQFN) + * Getter for menu cache file instance * - * @return $fqfn Full-qualified file name of the menu cache + * @return $fileInstance Full-qualified file name of the menu cache */ - public function getMenuCacheFqfn () { + public function getMenuCacheFile () { // Get the application instance from registry $applicationInstance = Registry::getRegistry()->getInstance('app'); - // Get the FQFN ready - $fqfn = sprintf('%s%smenus/_cache/%s.%s', + // Get the file instance ready + $fileInstance = new SplFileInfo(sprintf('%s%smenus/_cache/%s.%s', $this->getConfigInstance()->getConfigEntry('application_base_path'), $applicationInstance->getAppShortName(), md5( @@ -883,10 +884,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla $this->getMenuInstance()->__toString() ), $this->getMenuInstance()->getMenuType() - ); + )); // Return it - return $fqfn; + return $fileInstance; } }