public static function addMap($class, $map = '') { if (is_array($class)) { self::$map = array_merge(self::$map, $class); } else { self::$map[$class] = $map; } }
public static function addNamespace($namespace, $path = '') { if (is_array($namespace)) { self::$namespace = array_merge(self::$namespace, $namespace); } else { self::$namespace[$namespace] = $path; } }
public static function addNamespaceAlias($namespace, $original = '') { if (is_array($namespace)) { self::$namespaceAlias = array_merge(self::$namespace, $namespace); } else { self::$namespaceAlias[$namespace] = $original; } }
/** * 初始化类的实例 * @return void */ public static function clearInstance() { self::$instance = []; }