PHP Class WellCommerce\Bundle\DistributionBundle\Manager\PackageManager

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Manager\AbstractManager
Show file Open project: wellcommerce/wellcommerce

Protected Properties

Property Type Description
$helper WellCommerce\Bundle\DistributionBundle\Helper\Package\PackageHelperInterface

Public Methods

Method Description
changePackageStatus ( Request $request ) Changes package info according to operation and data fetched from PackagistAPI
getConsoleCommandArguments ( Request $request ) : array Returns console command arguments
setHelper ( WellCommerce\Bundle\DistributionBundle\Helper\Package\PackageHelperInterface $helper )
syncPackages ( $type ) Searches for all packages of particular type and adds them to Smuggler

Protected Methods

Method Description
addPackage ( Package $remotePackage ) Adds new package to info to Smuggler
getPackageVersionReference ( Packagist\Api\Result\Package\Version $version ) : string Returns reference for particular package version
setPackageVersions ( WellCommerce\Bundle\DistributionBundle\Entity\PackageInterface $package )
syncPackage ( Package $remotePackage ) Syncs single remote package

Method Details

addPackage() protected method

Adds new package to info to Smuggler
protected addPackage ( Package $remotePackage )
$remotePackage Packagist\Api\Result\Package

changePackageStatus() public method

Changes package info according to operation and data fetched from PackagistAPI
public changePackageStatus ( Request $request )
$request Symfony\Component\HttpFoundation\Request

getConsoleCommandArguments() public method

Returns console command arguments
public getConsoleCommandArguments ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getPackageVersionReference() protected method

Returns reference for particular package version
protected getPackageVersionReference ( Packagist\Api\Result\Package\Version $version ) : string
$version Packagist\Api\Result\Package\Version
return string

setHelper() public method

public setHelper ( WellCommerce\Bundle\DistributionBundle\Helper\Package\PackageHelperInterface $helper )
$helper WellCommerce\Bundle\DistributionBundle\Helper\Package\PackageHelperInterface

setPackageVersions() protected method

protected setPackageVersions ( WellCommerce\Bundle\DistributionBundle\Entity\PackageInterface $package )
$package WellCommerce\Bundle\DistributionBundle\Entity\PackageInterface

syncPackage() protected method

Syncs single remote package
protected syncPackage ( Package $remotePackage )
$remotePackage Packagist\Api\Result\Package

syncPackages() public method

Searches for all packages of particular type and adds them to Smuggler
public syncPackages ( $type )

Property Details

$helper protected property

protected PackageHelperInterface,WellCommerce\Bundle\DistributionBundle\Helper\Package $helper
return WellCommerce\Bundle\DistributionBundle\Helper\Package\PackageHelperInterface