protected function getAssetManager(IOInterface $io, Config $config, ProcessExecutor $executor, Filesystem $fs)
    {
        $manager = $config->get('manager');

        foreach (self::$assetManagers as $class) {
            $am = new $class($io, $config, $executor, $fs);

            if ($am instanceof AssetManagerInterface && $manager === $am->getName()) {
                return $am;
            }
        }

        throw new RuntimeException(sprintf('The asset manager "%s" doesn\'t exist', $manager));
    }
protected function getAssetManager(IOInterface $io, Config $config, ProcessExecutor $executor, Filesystem $fs)
    {
        $manager = $config->get('manager');

        foreach (self::$assetManagers as $class) {
            $am = new $class($io, $config, $executor, $fs);

            if ($am instanceof AssetManagerInterface && $manager === $am->getName()) {
                return $am;
            }
        }

        throw new RuntimeException(sprintf('The asset manager "%s" doesn\'t exist', $manager));
    }
protected function getAssetManager ( IOInterface $ io , Config $ config , ProcessExecutor $ executor , Filesystem $ fs ) { $ manager = $ config -> get ( 'manager' ) ; foreach ( self :: $ assetManagers as $ class ) { $ am = new $ class ( $ io , $ config , $ executor , $ fs ) ; if ( $ am instanceof AssetManagerInterface && $ manager === $ am -> getName ( ) ) { return $ am ; } } throw new RuntimeException ( sprintf ( 'The asset manager "%s" doesn\'t exist' , $ manager ) ) ; }
Get the asset manager.

@param IOInterface     $io       The IO
@param Config          $config   The config
@param ProcessExecutor $executor The process executor
@param Filesystem      $fs       The composer filesystem

@throws RuntimeException When the asset manager is not found

@return AssetManagerInterface
Get the asset manager .