private function parseComposerLoader(): void
    {
        // get composer autoload map
        $map = $this->loader->getPrefixes();
        if (Any::isArray($map)) {
            // get all available apps root dirs by psr loader for apps
            if (array_key_exists('Apps\\', $map)) {
                foreach ($map['Apps\\'] as $appPath) {
                    $this->appRoots[] = $appPath;
                }
            }

            // get Widgets map
            if (array_key_exists('Widgets\\', $map)) {
                // get all available root dirs by psr loader for widgets
                foreach ($map['Widgets\\'] as $widgetPath) {
                    $this->widgetRoots[] = $widgetPath;
                }
            }
        }

        // set default root path if not found anything else
        if (count($this->appRoots) < 1) {
            $this->appRoots = [root];
        }

        if (count($this->widgetRoots) < 1) {
            $this->widgetRoots = [root];
        }
    }
private function parseComposerLoader(): void
    {
        // get composer autoload map
        $map = $this->loader->getPrefixes();
        if (Any::isArray($map)) {
            // get all available apps root dirs by psr loader for apps
            if (array_key_exists('Apps\\', $map)) {
                foreach ($map['Apps\\'] as $appPath) {
                    $this->appRoots[] = $appPath;
                }
            }

            // get Widgets map
            if (array_key_exists('Widgets\\', $map)) {
                // get all available root dirs by psr loader for widgets
                foreach ($map['Widgets\\'] as $widgetPath) {
                    $this->widgetRoots[] = $widgetPath;
                }
            }
        }

        // set default root path if not found anything else
        if (count($this->appRoots) < 1) {
            $this->appRoots = [root];
        }

        if (count($this->widgetRoots) < 1) {
            $this->widgetRoots = [root];
        }
    }
private function parseComposerLoader ( ) : void { // get composer autoload map $ map = $ this -> loader -> getPrefixes ( ) ; if ( Any :: isArray ( $ map ) ) { // get all available apps root dirs by psr loader for apps if ( array_key_exists ( 'Apps\\' , $ map ) ) { foreach ( $ map [ 'Apps\\' ] as $ appPath ) { $ this -> appRoots [ ] = $ appPath ; } } // get Widgets map if ( array_key_exists ( 'Widgets\\' , $ map ) ) { // get all available root dirs by psr loader for widgets foreach ( $ map [ 'Widgets\\' ] as $ widgetPath ) { $ this -> widgetRoots [ ] = $ widgetPath ; } } } // set default root path if not found anything else if ( count ( $ this -> appRoots ) < 1 ) { $ this -> appRoots = [ root ] ; } if ( count ( $ this -> widgetRoots ) < 1 ) { $ this -> widgetRoots = [ root ] ; } }
Find app's and widgets root directories over composer psr loader
Find app s and widgets root directories over composer psr loader