projects
/
core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some cleanups, more usage of ObjectFactory:
[core.git]
/
inc
/
classes.php
diff --git
a/inc/classes.php
b/inc/classes.php
index d42d77972e1ed7644cf128af5500e764c7c6b107..ac3940a4e7cbcce9793b2583ef237895d4d8c2b6 100644
(file)
--- a/
inc/classes.php
+++ b/
inc/classes.php
@@
-4,7
+4,7
@@
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0
*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009
, 2010
Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009
- 2011
Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @deprecated
* @todo We should minimize these includes
* @license GNU GPL 3.0 or any newer version
* @deprecated
* @todo We should minimize these includes
@@
-31,10
+31,13
@@
$lowerClasses = array(
'middleware' // The middleware
);
'middleware' // The middleware
);
+// Cache loader instance
+$loaderInstance = ClassLoader::getInstance();
+
// Load all classes
foreach ($lowerClasses as $className) {
// Try to load the framework classes
// Load all classes
foreach ($lowerClasses as $className) {
// Try to load the framework classes
-
ClassLoader::getInstance()
->scanClassPath('inc/classes/' . $className . '/');
+
$loaderInstance
->scanClassPath('inc/classes/' . $className . '/');
} // END - foreach
// Clean up the global namespace
} // END - foreach
// Clean up the global namespace