protected function hasAutoloader($path)
    {
        if (is_dir($path)) {
            $finder = new \Symfony\Component\Finder\Finder();
            $bundles = $finder->files()->depth(0)->name('autoload.json')->in($path);
            if (count($bundles) == 1) {
                return true;
            }
        }

        return false;
    }
protected function hasAutoloader($path)
    {
        if (is_dir($path)) {
            $finder = new \Symfony\Component\Finder\Finder();
            $bundles = $finder->files()->depth(0)->name('autoload.json')->in($path);
            if (count($bundles) == 1) {
                return true;
            }
        }

        return false;
    }
protected function hasAutoloader ( $ path ) { if ( is_dir ( $ path ) ) { $ finder = new \ Symfony \ Component \ Finder \ Finder ( ) ; $ bundles = $ finder -> files ( ) -> depth ( 0 ) -> name ( 'autoload.json' ) -> in ( $ path ) ; if ( count ( $ bundles ) == 1 ) { return true ; } } return false ; }
Checks if the bundle has an autoloader.json file

@param string $path The bundle's path
@return boolean
Checks if the bundle has an autoloader . json file