/** * * @static \MUtil_Loader_CachedLoader $instance * @param stirng $dir * @return \MUtil_Loader_CachedLoader */ public static function getInstance($dir = null) { static $instance; if (!$instance) { $instance = new self($dir); if (is_subclass_of('Zend_Loader', 'MUtil_Loader_LoaderMarkerInterface')) { \Zend_Loader::setCachedLoader($instance); } } return $instance; }