Method | Description | |
---|---|---|
getInstallPath ( Composer\Package\PackageInterface $package ) : string | Get the installation path of the package. | |
install ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | Install the package. | |
isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean | Check whether the package is already installed. | |
supports ( $packageType ) : boolean | Whether the installer supports a given package type. |
Method | Description | |
---|---|---|
getHooks ( Composer\Package\PackageInterface $package ) : array | Get the hooks configuration from package extra data. | |
getSuffix ( Composer\Package\PackageInterface $package ) : string | Get the package name suffix. |
public getInstallPath ( Composer\Package\PackageInterface $package ) : string | ||
$package | Composer\Package\PackageInterface | The package to install. |
return | string | Relative installation path. |
public install ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) | ||
$repo | Composer\Repository\InstalledRepositoryInterface | The repository from where the package was fetched. |
$package | Composer\Package\PackageInterface | The package to install. |
public isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean | ||
$repo | Composer\Repository\InstalledRepositoryInterface | |
$package | Composer\Package\PackageInterface | |
return | boolean |