PHP Interface LEtudiant\Composer\Data\Package\PackageDataManagerInterface

Author: Sylvain Lorinet ([email protected])
Show file Open project: letudiant/composer-shared-package-plugin Interface Usage Examples

Public Methods

Method Description
addPackageUsage ( Composer\Package\PackageInterface $package ) Add a row in the "packages.json" file, with the project name for the "package/version" key
getPackageUsage ( Composer\Package\PackageInterface $package ) : array Return usage of the current package
removePackageUsage ( Composer\Package\PackageInterface $package ) Remove the row in the "packages.json" file
setPackageInstallationSource ( Composer\Package\PackageInterface $package )
setVendorDir ( string $vendorDir ) Set the vendor directory to save the "packages.json" file

Method Details

addPackageUsage() public method

Add a row in the "packages.json" file, with the project name for the "package/version" key
public addPackageUsage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

getPackageUsage() public method

Return usage of the current package
public getPackageUsage ( Composer\Package\PackageInterface $package ) : array
$package Composer\Package\PackageInterface
return array

removePackageUsage() public method

Remove the row in the "packages.json" file
public removePackageUsage ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

setPackageInstallationSource() public method

public setPackageInstallationSource ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

setVendorDir() public method

Set the vendor directory to save the "packages.json" file
public setVendorDir ( string $vendorDir )
$vendorDir string