private static function getInstalledComposerJson()
    {
        $finder = new Finder();
        $finder->files()
            ->name('composer.json')
            ->notPath('vendor/composer')
            ->depth(2)
            ->followLinks()
        ;
        try {
            $finder->in(['vendor']);
        } catch (\InvalidArgumentException $e) {
            // Composer has not had its autoloader dumped
        }

        return $finder;
    }
private static function getInstalledComposerJson()
    {
        $finder = new Finder();
        $finder->files()
            ->name('composer.json')
            ->notPath('vendor/composer')
            ->depth(2)
            ->followLinks()
        ;
        try {
            $finder->in(['vendor']);
        } catch (\InvalidArgumentException $e) {
            // Composer has not had its autoloader dumped
        }

        return $finder;
    }
private static function getInstalledComposerJson ( ) { $ finder = new Finder ( ) ; $ finder -> files ( ) -> name ( 'composer.json' ) -> notPath ( 'vendor/composer' ) -> depth ( 2 ) -> followLinks ( ) ; try { $ finder -> in ( [ 'vendor' ] ) ; } catch ( \ InvalidArgumentException $ e ) { // Composer has not had its autoloader dumped } return $ finder ; }
Return all the installed extension composer.json files.

@return Finder|SplFileInfo[]
Return all the installed extension composer . json files .