/** * This method return a singleton instance of __ClassLoader * * @return __ClassLoader A singleton reference to the __ClassLoader */ public static function &getInstance() { if (self::$_instance == null) { if (!__Lion::getInstance()->getRuntimeDirectives()->getDirective('DEBUG_MODE')) { self::$_instance = __CacheManager::getInstance()->getCache()->getData('__ClassLoader__'); } //if still null: if (self::$_instance == null) { self::$_instance = new __ClassLoader(); } } return self::$_instance; }