src/Repository.php
public function scan()
    {
        $paths = $this->getScanPaths();

        $components = [];

        foreach ($paths as $key => $path) {
            $manifests = $this->app['files']->glob("{$path}/component.json");

            is_array($manifests) || $manifests = [];

            foreach ($manifests as $manifest) {
                $name = Json::make($manifest)->get('name');

                $components[$name] = new Component($this->app, $name, dirname($manifest));
            }
        }

        return $components;
    }
public function scan()
    {
        $paths = $this->getScanPaths();

        $components = [];

        foreach ($paths as $key => $path) {
            $manifests = $this->app['files']->glob("{$path}/component.json");

            is_array($manifests) || $manifests = [];

            foreach ($manifests as $manifest) {
                $name = Json::make($manifest)->get('name');

                $components[$name] = new Component($this->app, $name, dirname($manifest));
            }
        }

        return $components;
    }
public function scan ( ) { $ paths = $ this -> getScanPaths ( ) ; $ components = [ ] ; foreach ( $ paths as $ key => $ path ) { $ manifests = $ this -> app [ 'files' ] -> glob ( "{$path}/component.json" ) ; is_array ( $ manifests ) || $ manifests = [ ] ; foreach ( $ manifests as $ manifest ) { $ name = Json :: make ( $ manifest ) -> get ( 'name' ) ; $ components [ $ name ] = new Component ( $ this -> app , $ name , dirname ( $ manifest ) ) ; } } return $ components ; }
Get & scan all components.

@return array
Get & scan all components .