From 7cdeddaeac97fca7b039d527e8145c3c9e5e4117 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 13 Mar 2009 13:31:02 +0000 Subject: [PATCH] Rewritten to use scanClassPath() --- application/selector/loader.php | 2 +- application/ship-simu/loader.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/selector/loader.php b/application/selector/loader.php index f7c2dfc..55042ac 100644 --- a/application/selector/loader.php +++ b/application/selector/loader.php @@ -25,7 +25,7 @@ $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); diff --git a/application/ship-simu/loader.php b/application/ship-simu/loader.php index 12b388b..fca1551 100644 --- a/application/ship-simu/loader.php +++ b/application/ship-simu/loader.php @@ -28,7 +28,7 @@ $cfg = FrameworkConfiguration::getInstance(); // 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 -- 2.39.5