private static $frameworkPaths = array(
'exceptions', // Exceptions
'interfaces', // Interfaces
- 'main', // General main classes
+ 'classes', // Classes
'middleware' // The middleware
);
$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
}
} // END - if
// IS the cache there?
- if (file_exists($this->listCacheFQFN)) {
+ if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
// Get content
$cacheContent = file_get_contents($this->listCacheFQFN);
} // END - if
// Does the class cache exist?
- if (file_exists($this->classCacheFQFN)) {
+ if (BaseFrameworkSystem::isReadableFile($this->listCacheFQFN)) {
// Then include it
require($this->classCacheFQFN);
}
/**
- * 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
*/