dev/src/ReleaseBuilder/ReleaseBuilder.php
private function updateComponentVersions(array $release)
    {
        foreach ($release as $key => $releaseComponent)
        {
            $component = $this->getComponentComposer($this->rootPath(), $key);

            $this->addToComponentManifest($releaseComponent['version'], $component);
            foreach ((array) $component['entry'] as $entry) {
                $entryUpdated = $this->updateComponentVersionConstant(
                    $releaseComponent['version'],
                    $component['path'],
                    $entry
                );
            }

            if ($component['id'] !== 'google-cloud') {
                $this->updateComponentVersionFile($releaseComponent['version'], $component);
                $this->updateComposerReplacesVersion($releaseComponent['version'], $component);
            }
        }
    }
private function updateComponentVersions(array $release)
    {
        foreach ($release as $key => $releaseComponent)
        {
            $component = $this->getComponentComposer($this->rootPath(), $key);

            $this->addToComponentManifest($releaseComponent['version'], $component);
            foreach ((array) $component['entry'] as $entry) {
                $entryUpdated = $this->updateComponentVersionConstant(
                    $releaseComponent['version'],
                    $component['path'],
                    $entry
                );
            }

            if ($component['id'] !== 'google-cloud') {
                $this->updateComponentVersionFile($releaseComponent['version'], $component);
                $this->updateComposerReplacesVersion($releaseComponent['version'], $component);
            }
        }
    }
private function updateComponentVersions ( array $ release ) { foreach ( $ release as $ key => $ releaseComponent ) { $ component = $ this -> getComponentComposer ( $ this -> rootPath ( ) , $ key ) ; $ this -> addToComponentManifest ( $ releaseComponent [ 'version' ] , $ component ) ; foreach ( ( array ) $ component [ 'entry' ] as $ entry ) { $ entryUpdated = $ this -> updateComponentVersionConstant ( $ releaseComponent [ 'version' ] , $ component [ 'path' ] , $ entry ) ; } if ( $ component [ 'id' ] !== 'google-cloud' ) { $ this -> updateComponentVersionFile ( $ releaseComponent [ 'version' ] , $ component ) ; $ this -> updateComposerReplacesVersion ( $ releaseComponent [ 'version' ] , $ component ) ; } } }
Iterate through a release and do the work of preparing a release.

@param array $release An associative array, where the key is the
component ID and the value is structured data describing the
release.
@return void
Iterate through a release and do the work of preparing a release .