src/Core/Manifest/VersionProvider.php
public function getModuleVersionFromComposer($modules = [])
    {
        $versions = [];
        $lockData = $this->getComposerLock();
        if ($lockData && !empty($lockData['packages'])) {
            foreach ($lockData['packages'] as $package) {
                if (in_array($package['name'], $modules) && isset($package['version'])) {
                    $versions[$package['name']] = $package['version'];
                }
            }
        }
        return $versions;
    }
public function getModuleVersionFromComposer($modules = [])
    {
        $versions = [];
        $lockData = $this->getComposerLock();
        if ($lockData && !empty($lockData['packages'])) {
            foreach ($lockData['packages'] as $package) {
                if (in_array($package['name'], $modules) && isset($package['version'])) {
                    $versions[$package['name']] = $package['version'];
                }
            }
        }
        return $versions;
    }
public function getModuleVersionFromComposer ( $ modules = [ ] ) { $ versions = [ ] ; $ lockData = $ this -> getComposerLock ( ) ; if ( $ lockData && ! empty ( $ lockData [ 'packages' ] ) ) { foreach ( $ lockData [ 'packages' ] as $ package ) { if ( in_array ( $ package [ 'name' ] , $ modules ) && isset ( $ package [ 'version' ] ) ) { $ versions [ $ package [ 'name' ] ] = $ package [ 'version' ] ; } } } return $ versions ; }
Tries to obtain version number from composer.lock if it exists

@param  array $modules
@return array
Tries to obtain version number from composer . lock if it exists