PHP 클래스 PHPComposter\PHPComposter\Installer

The Installer class tells Composer where to install each package of type php-composter-action.
부터: 0.1.0
저자: Alain Schlesser ([email protected])
상속: extends Composer\Installer\LibraryInstaller
파일 보기 프로젝트 열기: php-composter/php-composter

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

메소드 상세

getHooks() 보호된 메소드

Get the hooks configuration from package extra data.
부터: 0.2.0
protected getHooks ( Composer\Package\PackageInterface $package ) : array
$package Composer\Package\PackageInterface Package to inspect.
리턴 array Array of prioritized hooks.

getInstallPath() 공개 메소드

Get the installation path of the package.
부터: 0.1.0
public getInstallPath ( Composer\Package\PackageInterface $package ) : string
$package Composer\Package\PackageInterface The package to install.
리턴 string Relative installation path.

getSuffix() 보호된 메소드

Get the package name suffix.
부터: 0.1.0
protected getSuffix ( Composer\Package\PackageInterface $package ) : string
$package Composer\Package\PackageInterface Package to inspect.
리턴 string Suffix of the package name.

install() 공개 메소드

Install the package.
부터: 0.1.0
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.

isInstalled() 공개 메소드

Check whether the package is already installed.
부터: 0.1.0
public isInstalled ( Composer\Repository\InstalledRepositoryInterface $repo, Composer\Package\PackageInterface $package ) : boolean
$repo Composer\Repository\InstalledRepositoryInterface
$package Composer\Package\PackageInterface
리턴 boolean

supports() 공개 메소드

Whether the installer supports a given package type.
부터: 0.1.0
public supports ( $packageType ) : boolean
$packageType
리턴 boolean