protected function getPackageVersions($id)
    {
        $localPackage  = $this->get('package.repository')->findOneById($id);
        $remotePackage = $this->get('package.helper')->getPackage($localPackage->getFullName());
        $versions      = $remotePackage->getVersions();
        $result        = [];
        
        foreach ($versions as $version) {
            $this->getPackageInfo($version, $result);
        }
        
        return $result;
    }
protected function getPackageVersions($id)
    {
        $localPackage  = $this->get('package.repository')->findOneById($id);
        $remotePackage = $this->get('package.helper')->getPackage($localPackage->getFullName());
        $versions      = $remotePackage->getVersions();
        $result        = [];
        
        foreach ($versions as $version) {
            $this->getPackageInfo($version, $result);
        }
        
        return $result;
    }
protected function getPackageVersions ( $ id ) { $ localPackage = $ this -> get ( 'package.repository' ) -> findOneById ( $ id ) ; $ remotePackage = $ this -> get ( 'package.helper' ) -> getPackage ( $ localPackage -> getFullName ( ) ) ; $ versions = $ remotePackage -> getVersions ( ) ; $ result = [ ] ; foreach ( $ versions as $ version ) { $ this -> getPackageInfo ( $ version , $ result ) ; } return $ result ; }
Returns version information for package

@param $id

@return array
Returns version information for package