PHP Интерфейс LEtudiant\Composer\Data\Package\PackageDataManagerInterface

Автор: Sylvain Lorinet ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

addPackageUsage() публичный Метод

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() публичный Метод

Return usage of the current package
public getPackageUsage ( Composer\Package\PackageInterface $package ) : array
$package Composer\Package\PackageInterface
Результат array

removePackageUsage() публичный Метод

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

setPackageInstallationSource() публичный Метод

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

setVendorDir() публичный Метод

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