public function findAssets () : array
    {
        $assets = [];

        foreach ($this->namespaces as $namespace => $dir)
        {
            if (!\is_dir($dir))
            {
                continue;
            }

            $finder = new Finder();

            $finder
                ->files()
                ->followLinks()
                ->in($dir);

            foreach ($finder as $foundFile)
            {
                $assets[] = new Asset($namespace, $foundFile->getRelativePathname());
            }
        }

        return $assets;
    }
public function findAssets () : array
    {
        $assets = [];

        foreach ($this->namespaces as $namespace => $dir)
        {
            if (!\is_dir($dir))
            {
                continue;
            }

            $finder = new Finder();

            $finder
                ->files()
                ->followLinks()
                ->in($dir);

            foreach ($finder as $foundFile)
            {
                $assets[] = new Asset($namespace, $foundFile->getRelativePathname());
            }
        }

        return $assets;
    }
public function findAssets ( ) : array { $ assets = [ ] ; foreach ( $ this -> namespaces as $ namespace => $ dir ) { if ( ! \ is_dir ( $ dir ) ) { continue ; } $ finder = new Finder ( ) ; $ finder -> files ( ) -> followLinks ( ) -> in ( $ dir ) ; foreach ( $ finder as $ foundFile ) { $ assets [ ] = new Asset ( $ namespace , $ foundFile -> getRelativePathname ( ) ) ; } } return $ assets ; }
Finds all assets in the namespaces

@return Asset[]
Finds all assets in the namespaces