protected function createArrayRepositoryConfig(array $packageConfigs)
    {
        $packages = array();
        $loader = new ArrayLoader();

        foreach ($packageConfigs as $version => $config) {
            try {
                $config['version'] = $version;
                $config = $this->assetType->getPackageConverter()->convert($config);
                $config = $this->assetRepositoryManager->solveResolutions($config);
                $packages[] = $loader->load($config);
            } catch (\UnexpectedValueException $exception) {
                $this->io->write("<warning>Skipped {$config['name']} version {$version}: {$exception->getMessage()}</warning>", IOInterface::VERBOSE);
            }
        }

        return $packages;
    }
protected function createArrayRepositoryConfig(array $packageConfigs)
    {
        $packages = array();
        $loader = new ArrayLoader();

        foreach ($packageConfigs as $version => $config) {
            try {
                $config['version'] = $version;
                $config = $this->assetType->getPackageConverter()->convert($config);
                $config = $this->assetRepositoryManager->solveResolutions($config);
                $packages[] = $loader->load($config);
            } catch (\UnexpectedValueException $exception) {
                $this->io->write("<warning>Skipped {$config['name']} version {$version}: {$exception->getMessage()}</warning>", IOInterface::VERBOSE);
            }
        }

        return $packages;
    }
protected function createArrayRepositoryConfig ( array $ packageConfigs ) { $ packages = array ( ) ; $ loader = new ArrayLoader ( ) ; foreach ( $ packageConfigs as $ version => $ config ) { try { $ config [ 'version' ] = $ version ; $ config = $ this -> assetType -> getPackageConverter ( ) -> convert ( $ config ) ; $ config = $ this -> assetRepositoryManager -> solveResolutions ( $ config ) ; $ packages [ ] = $ loader -> load ( $ config ) ; } catch ( \ UnexpectedValueException $ exception ) { $ this -> io -> write ( "<warning>Skipped {$config['name']} version {$version}: {$exception->getMessage()}</warning>" , IOInterface :: VERBOSE ) ; } } return $ packages ; }
Create the array repository with the asset configs.

A warning message is displayed if the constraint versions of packages
are broken. These versions are skipped and the plugin hope that other
versions will be OK.

@param array $packageConfigs The configs of assets package versions

@return CompletePackageInterface[]
Create the array repository with the asset configs .