X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=application%2Fmxchange%2Floader.php;h=c499a19335e1b8c224b12dbeb16975b2cc178e3e;hp=9297902b35d12f1d9da826ce88513f91598229b7;hb=5aa5796943ec5287dd9bae9d27219f99ddb7540b;hpb=f1d358441b193b364d57788d660e6649d0229ca6
diff --git a/application/mxchange/loader.php b/application/mxchange/loader.php
index 9297902b35..c499a19335 100644
--- a/application/mxchange/loader.php
+++ b/application/mxchange/loader.php
@@ -1,12 +1,12 @@
- * @version 0.3.0
- * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @version 0.0.0
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 MXChange Developer Team
* @license GNU GPL 3.0 or any newer version
- * @link http://www.mxchange.org
+ * @link http://www.mxchange.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,24 +19,21 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see .
+ * along with this program. If not, see .
*/
-// Is the variable set?
-if (!isset($application)) {
- // We need this!
- ApplicationEntryPoint::app_die("[Main:] Interne Variable application nicht gefunden!");
-}
+// Get config instance
+$cfg = FrameworkConfiguration::getInstance();
-// Load all classes
-ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/", FrameworkConfiguration::getInstance()->readConfig("application_path"), $application));
-
-// Include all classes
-ClassLoader::getInstance()->includeAllClasses();
+// Load all classes for the application
+foreach ($lowerClasses as $className) {
+ // Load the application classes
+ ClassLoader::getInstance()->scanClassPath(sprintf("%s/%s/%s", $cfg->getConfigEntry('application_path'), $cfg->getConfigEntry('app_name'), $className));
+} // END - if
// Clean up the global namespace
unset($lowerClasses);
-unset($class);
+unset($className);
// [EOF]
?>