protected function convertDependencies(array $asset, $assetKey, array &$composer, $composerKey, array &$vcsRepos = array())
    {
        if (isset($asset[$assetKey]) && \is_array($asset[$assetKey])) {
            $newDependencies = array();

            foreach ($asset[$assetKey] as $dependency => $version) {
                list($dependency, $version) = $this->convertDependency($dependency, $version, $vcsRepos, $composer);
                $version = $this->assetType->getVersionConverter()->convertRange($version);
                if (0 !== strpos($version, $dependency)) {
                    $newDependencies[$this->assetType->getComposerVendorName().'/'.$dependency] = $version;
                }
            }

            $composer[$composerKey] = $newDependencies;
        }
    }
protected function convertDependencies(array $asset, $assetKey, array &$composer, $composerKey, array &$vcsRepos = array())
    {
        if (isset($asset[$assetKey]) && \is_array($asset[$assetKey])) {
            $newDependencies = array();

            foreach ($asset[$assetKey] as $dependency => $version) {
                list($dependency, $version) = $this->convertDependency($dependency, $version, $vcsRepos, $composer);
                $version = $this->assetType->getVersionConverter()->convertRange($version);
                if (0 !== strpos($version, $dependency)) {
                    $newDependencies[$this->assetType->getComposerVendorName().'/'.$dependency] = $version;
                }
            }

            $composer[$composerKey] = $newDependencies;
        }
    }
protected function convertDependencies ( array $ asset , $ assetKey , array & $ composer , $ composerKey , array & $ vcsRepos = array ( ) ) { if ( isset ( $ asset [ $ assetKey ] ) && \ is_array ( $ asset [ $ assetKey ] ) ) { $ newDependencies = array ( ) ; foreach ( $ asset [ $ assetKey ] as $ dependency => $ version ) { list ( $ dependency , $ version ) = $ this -> convertDependency ( $ dependency , $ version , $ vcsRepos , $ composer ) ; $ version = $ this -> assetType -> getVersionConverter ( ) -> convertRange ( $ version ) ; if ( 0 !== strpos ( $ version , $ dependency ) ) { $ newDependencies [ $ this -> assetType -> getComposerVendorName ( ) . '/' . $ dependency ] = $ version ; } } $ composer [ $ composerKey ] = $ newDependencies ; } }
Converts simple key of package.

@param array  $asset       The asset data
@param string $assetKey    The asset key of dependencies
@param array  $composer    The composer data
@param string $composerKey The composer key of dependencies
@param array  $vcsRepos    The list of new vcs configs
Converts simple key of package .