]> git.mxchange.org Git - shipsimu.git/commitdiff
Rewritten to use scanClassPath()
authorRoland Häder <roland@mxchange.org>
Fri, 13 Mar 2009 13:31:02 +0000 (13:31 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 13 Mar 2009 13:31:02 +0000 (13:31 +0000)
application/selector/loader.php
application/ship-simu/loader.php

index f7c2dfc8e56f4f45481abab3470bb5a04ddf0781..55042aca20e2acdf082b99ab38cc513bc154298b 100644 (file)
@@ -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);
index 12b388beb3ebde03f5376cd38b94236ca87b49fc..fca1551b308611cc2d445c664b7b4c5f50044b97 100644 (file)
@@ -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