protected function resolveExtensionsUsingApi(&$options)
    {
        $extensions      = extensions();
        $extensionFinder = app('antares.extension.finder');
        foreach ($extensions as $extension) {
            $path   = $extensionFinder->resolveExtensionPath(array_get($extension, 'path'));
            $finder = new Finder();
            $count  = $finder->directories()->in($path . DIRECTORY_SEPARATOR . 'src')->depth('> 2')->name('/^Api/')->count();
            $name   = array_get($extension, 'name');
            if (!$count && array_key_exists($name, $options)) {
                unset($options[$name]);
            }
        }
        return $options;
    }
protected function resolveExtensionsUsingApi(&$options)
    {
        $extensions      = extensions();
        $extensionFinder = app('antares.extension.finder');
        foreach ($extensions as $extension) {
            $path   = $extensionFinder->resolveExtensionPath(array_get($extension, 'path'));
            $finder = new Finder();
            $count  = $finder->directories()->in($path . DIRECTORY_SEPARATOR . 'src')->depth('> 2')->name('/^Api/')->count();
            $name   = array_get($extension, 'name');
            if (!$count && array_key_exists($name, $options)) {
                unset($options[$name]);
            }
        }
        return $options;
    }
protected function resolveExtensionsUsingApi ( & $ options ) { $ extensions = extensions ( ) ; $ extensionFinder = app ( 'antares.extension.finder' ) ; foreach ( $ extensions as $ extension ) { $ path = $ extensionFinder -> resolveExtensionPath ( array_get ( $ extension , 'path' ) ) ; $ finder = new Finder ( ) ; $ count = $ finder -> directories ( ) -> in ( $ path . DIRECTORY_SEPARATOR . 'src' ) -> depth ( '> 2' ) -> name ( '/^Api/' ) -> count ( ) ; $ name = array_get ( $ extension , 'name' ) ; if ( ! $ count && array_key_exists ( $ name , $ options ) ) { unset ( $ options [ $ name ] ) ; } } return $ options ; }
Resolves extensions using api

@param array $options
@return array
Resolves extensions using api