// Set the application name for later usage
$cfg->setConfigEntry('app_name', $application);
-/**
- * Autoload-function
- *
- * @param $className Name of the class to load
- * @return void
- */
-function __autoload ($className) {
- // Try to include this class
- ClassLoader::getInstance()->includeClass($className);
-}
+// Register auto-load function with the SPL
+spl_autoload_register("ClassLoader::autoLoad");
/**
* Is the devel package included?
/**
* Load all development includes
*/
- ClassLoader::getInstance()->loadClasses('devel');
-}
+ ClassLoader::getInstance()->scanClassPath('devel');
+} // END - if
// [EOF]
?>