메소드 | 설명 | |
---|---|---|
getInstallPath ( Composer\Package\PackageInterface $package ) : string | Returns the installation path of a package | |
install ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | Installs specific package. | |
isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean | Checks that provided package is installed. | |
supports ( string $packageType ) : boolean | Decides if the installer supports the given type | |
uninstall ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | Uninstalls specific package. | |
update ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $initial, Composer\Package\PackageInterface $target ) | Updates specific package. |
public getInstallPath ( Composer\Package\PackageInterface $package ) : string | ||
$package | Composer\Package\PackageInterface | |
리턴 | string | path |
public install ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | ||
$repo | Composer\Repository\InstalledRepositoryInterface | repository in which to check |
$package | Composer\Package\PackageInterface | package instance |
public isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean | ||
$repo | Composer\Repository\InstalledRepositoryInterface | repository in which to check |
$package | Composer\Package\PackageInterface | package instance |
리턴 | boolean |
public uninstall ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | ||
$repo | Composer\Repository\InstalledRepositoryInterface | repository in which to check |
$package | Composer\Package\PackageInterface | package instance |
public update ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $initial, Composer\Package\PackageInterface $target ) | ||
$repo | Composer\Repository\InstalledRepositoryInterface | repository in which to check |
$initial | Composer\Package\PackageInterface | already installed package version |
$target | Composer\Package\PackageInterface | updated version |