projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b1e0d7f
)
Class loader instance "cached"
author
Roland Häder
<roland@mxchange.org>
Thu, 12 May 2011 09:24:12 +0000
(09:24 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 12 May 2011 09:24:12 +0000
(09:24 +0000)
inc/classes.php
patch
|
blob
|
history
diff --git
a/inc/classes.php
b/inc/classes.php
index dac2eea0d14445d6a9dd6f830a63595889e80ab6..ac3940a4e7cbcce9793b2583ef237895d4d8c2b6 100644
(file)
--- a/
inc/classes.php
+++ b/
inc/classes.php
@@
-31,10
+31,13
@@
$lowerClasses = array(
'middleware' // The middleware
);
+// Cache loader instance
+$loaderInstance = ClassLoader::getInstance();
+
// 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