From: Roland Häder Date: Thu, 12 May 2011 09:24:12 +0000 (+0000) Subject: Class loader instance "cached" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95ca9381b8f43a13263d2e2e35eceac426a6df78;p=core.git Class loader instance "cached" --- diff --git a/inc/classes.php b/inc/classes.php index dac2eea0..ac3940a4 100644 --- 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