Rewritten to use scanClassPath()
[mailer.git] / application / mxchange / loader.php
index 12b388beb3ebde03f5376cd38b94236ca87b49fc..0fa1c2b1588d79e09a42504fe4d2b5ca4991d632 100644 (file)
@@ -2,10 +2,10 @@
 /**
  * A specialized class loader for this class
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0.0
+ * @author     Roland Haeder <webmaster@ship-simu.org>
+ * @version    0.0.0
  * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
- * @license            GNU GPL 3.0 or any newer version
+ * @license    GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
@@ -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