X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fclass_ClassLoader.php;h=8ce7f4fe7732bbae6608045a4ce689c6b0d6a98d;hb=65f6c4366c9709c9c7c9070d903f1d948be0d5b0;hp=31fc9de2ee2f52b45658c768a124c987dc842016;hpb=bde1a7331a8a5c1e4a304583c0db268026aeb8a8;p=core.git diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index 31fc9de2..8ce7f4fe 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -1,10 +1,21 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.shipsimu.org * @@ -104,7 +115,7 @@ class ClassLoader { private static $frameworkPaths = array( 'exceptions', // Exceptions 'interfaces', // Interfaces - 'main', // General main classes + 'classes', // Classes 'middleware' // The middleware ); @@ -178,9 +189,9 @@ class ClassLoader { $loaderInstance = self::getSelfInstance(); // Load all classes - foreach (self::$frameworkPaths as $className) { + foreach (self::$frameworkPaths as $pathName) { // Try to load the framework classes - $loaderInstance->scanClassPath('inc/classes/' . $className . '/'); + $loaderInstance->scanClassPath('inc/main/' . $pathName . '/'); } // END - foreach } @@ -235,7 +246,7 @@ class ClassLoader { } // END - if // IS the cache there? - if (file_exists($this->listCacheFQFN)) { + if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) { // Get content $cacheContent = file_get_contents($this->listCacheFQFN); @@ -247,7 +258,7 @@ class ClassLoader { } // END - if // Does the class cache exist? - if (file_exists($this->classCacheFQFN)) { + if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) { // Then include it require($this->classCacheFQFN); @@ -462,7 +473,7 @@ class ClassLoader { } /** - * Getter for a printable list of included classes/interfaces/exceptions + * Getter for a printable list of included main/interfaces/exceptions * * @param $includeList A printable include list */ @@ -476,7 +487,5 @@ class ClassLoader { // And return it return $includeList; } -} -// [EOF] -?> +}