PHP 클래스 Monorepo\Composer\MonorepoInstaller

상속: implements Composer\Installer\InstallerInterface
파일 보기 프로젝트 열기: beberlei/composer-monorepo-plugin

공개 메소드들

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

메소드 상세

getInstallPath() 공개 메소드

Returns the installation path of a package
public getInstallPath ( Composer\Package\PackageInterface $package ) : string
$package Composer\Package\PackageInterface
리턴 string path

install() 공개 메소드

Installs specific package.
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

isInstalled() 공개 메소드

Checks that provided package is installed.
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

supports() 공개 메소드

Decides if the installer supports the given type
public supports ( string $packageType ) : boolean
$packageType string
리턴 boolean

uninstall() 공개 메소드

Uninstalls specific package.
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

update() 공개 메소드

Updates specific package.
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