dev/src/ComponentVersionTrait.php
private function updateComponentVersionFile($version, array $component)
    {
        $path = $this->rootPath() .'/'. $component['path'] .'/VERSION';
        $result = file_put_contents($path, $version);

        if (!$result) {
            throw new \RuntimeException('File write failed');
        }

        return true;
    }
private function updateComponentVersionFile($version, array $component)
    {
        $path = $this->rootPath() .'/'. $component['path'] .'/VERSION';
        $result = file_put_contents($path, $version);

        if (!$result) {
            throw new \RuntimeException('File write failed');
        }

        return true;
    }
private function updateComponentVersionFile ( $ version , array $ component ) { $ path = $ this -> rootPath ( ) . '/' . $ component [ 'path' ] . '/VERSION' ; $ result = file_put_contents ( $ path , $ version ) ; if ( ! $ result ) { throw new \ RuntimeException ( 'File write failed' ) ; } return true ; }
Update the VERSION file in a component directory.

@param string $version The new version. (do not prefix with `v`).
@param array $component The component data as an array.
@return bool
Update the VERSION file in a component directory .