protected static function getLoaderPrefixes() {
        $loader = static::getLoader();
        $_prefixes = [
            [],
            $loader->getPrefixesPsr4(),
        ];
        $_prefixes = ArrayHelper::merge(...$_prefixes);
        $prefixes = [];
        foreach ($_prefixes as $prefix => $paths) {
            $prefix = trim($prefix, '\\');
            $_paths = [];
            for ($i = 0; $i < count($paths); $i++) { $_paths[] = realpath($paths[$i]); }
            $prefixes[$prefix] = $_paths;
        }
        return $prefixes;
    }
protected static function getLoaderPrefixes() {
        $loader = static::getLoader();
        $_prefixes = [
            [],
            $loader->getPrefixesPsr4(),
        ];
        $_prefixes = ArrayHelper::merge(...$_prefixes);
        $prefixes = [];
        foreach ($_prefixes as $prefix => $paths) {
            $prefix = trim($prefix, '\\');
            $_paths = [];
            for ($i = 0; $i < count($paths); $i++) { $_paths[] = realpath($paths[$i]); }
            $prefixes[$prefix] = $_paths;
        }
        return $prefixes;
    }
protected static function getLoaderPrefixes ( ) { $ loader = static :: getLoader ( ) ; $ _prefixes = [ [ ] , $ loader -> getPrefixesPsr4 ( ) , ] ; $ _prefixes = ArrayHelper :: merge ( ... $ _prefixes ) ; $ prefixes = [ ] ; foreach ( $ _prefixes as $ prefix => $ paths ) { $ prefix = trim ( $ prefix , '\\' ) ; $ _paths = [ ] ; for ( $ i = 0 ; $ i < count ( $ paths ) ; $ i ++ ) { $ _paths [ ] = realpath ( $ paths [ $ i ] ) ; } $ prefixes [ $ prefix ] = $ _paths ; } return $ prefixes ; }
Get prefixes from loader
@return array
Get prefixes from loader