* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// Get config instance
-$cfg = FrameworkConfiguration::getSelfInstance();
-
-// Load all classes for the application
-foreach ($lowerClasses as $class) {
- // Try to load the application classes
- ClassLoader::getSelfInstance()->scanClassPath(sprintf('%s/%s/%s', $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $class));
-} // END - foreach
-
-// Clean up the global namespace
-unset($lowerClasses);
-unset($class);
+// Scan for application's classes, exceptions and interfaces
+ClassLoader::scanApplicationClasses();
// [EOF]
?>