$cfg = FrameworkConfiguration::getInstance();
// Load all classes
-ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/", $cfg->readConfig('application_path'), $cfg->readConfig('app_name')));
+ClassLoader::getInstance()->scanClassPath(sprintf("%s/%s/", $cfg->readConfig('application_path'), $cfg->readConfig('app_name')));
// Clean up the global namespace
unset($lowerClasses);
// Load all classes for the application
foreach ($lowerClasses as $className) {
// Load the application classes
- ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $className));
+ ClassLoader::getInstance()->scanClassPath(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $className));
} // END - if
// Clean up the global namespace