Property | Type | Description | |
---|---|---|---|
$composer | Composer\Composer | ||
$packagesData | array | ||
$vendorDir | string |
Method | Description | |
---|---|---|
__construct ( Composer\Composer $composer ) | ||
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 ) |
Method | Description | |
---|---|---|
getPackageDataKey ( Composer\Package\PackageInterface $package, string $key, mixed $defaultValue = null ) : mixed | ||
getPackageInstallationSource ( Composer\Package\PackageInterface $package ) : string | null | ||
initializePackageData ( ) | Initialize the package data array if not set | |
updatePackageUsageFile ( Composer\Package\PackageInterface $package, array $packageData ) |
public __construct ( Composer\Composer $composer ) | ||
$composer | Composer\Composer |
public addPackageUsage ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
protected getPackageInstallationSource ( Composer\Package\PackageInterface $package ) : string | null | ||
$package | Composer\Package\PackageInterface | |
return | string | null |
public getPackageUsage ( Composer\Package\PackageInterface $package ) : array | ||
$package | Composer\Package\PackageInterface | |
return | array |
protected initializePackageData ( ) |
public removePackageUsage ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
public setPackageInstallationSource ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
protected updatePackageUsageFile ( Composer\Package\PackageInterface $package, array $packageData ) | ||
$package | Composer\Package\PackageInterface | |
$packageData | array |