WellCommerce\Bundle\DistributionBundle\Manager\PackageManager::addPackage PHP Method

addPackage() protected method

Adds new package to info to Smuggler
protected addPackage ( Package $remotePackage )
$remotePackage Packagist\Api\Result\Package
    protected function addPackage(RemotePackage $remotePackage)
    {
        list($vendor, $name) = explode('/', $remotePackage->getName());
        $package = new Package();
        $package->setFullName($remotePackage->getName());
        $package->setName($name);
        $package->setVendor($vendor);
        $this->setPackageVersions($package);
        $this->getDoctrineHelper()->getEntityManager()->persist($package);
    }