// Import framework stuff
use CoreFramework\Configuration\FrameworkConfiguration;
+use CoreFramework\EntryPoint\ApplicationEntryPoint;
use CoreFramework\Object\BaseFrameworkSystem;
// Import SPL stuff
// Cache loader instance
$loaderInstance = self::getSelfInstance();
+ // Get config instance
+ $cfg = FrameworkConfiguration::getSelfInstance();
+
// Load all classes
foreach (self::$frameworkPaths as $shortPath) {
// Debug message
//* NOISY-DEBUG: */ printf('[%s:%d]: shortPath=%s' . PHP_EOL, __METHOD__, __LINE__, $shortPath);
+ // Generate full path from it
+ $pathName = realpath(sprintf(
+ '%s/framework/main/%s/',
+ $cfg->getConfigEntry('base_path'),
+ $shortPath
+ ));
+
+ // Debug message
+ //* NOISY-DEBUG: */ printf('[%s:%d]: pathName=%s' . PHP_EOL, __METHOD__, __LINE__, $pathName);
+
+ // Is it not FALSE and accessible?
+ if (is_bool($pathName)) {
+ // Skip this
+ continue;
+ } elseif (!is_readable($pathName)) {
+ // @TODO Throw exception instead of break
+ break;
+ }
+
// Try to load the framework classes
- $loaderInstance->scanClassPath(sprintf('framework/main/%s/', $shortPath));
+ $loaderInstance->scanClassPath($pathName);
} // END - foreach
// Trace message