Метод | Описание | |
---|---|---|
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 |
public addPackageUsage ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
public getPackageUsage ( Composer\Package\PackageInterface $package ) : array | ||
$package | Composer\Package\PackageInterface | |
Результат | array |
public removePackageUsage ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
public setPackageInstallationSource ( Composer\Package\PackageInterface $package ) | ||
$package | Composer\Package\PackageInterface |
public setVendorDir ( string $vendorDir ) | ||
$vendorDir | string |