PHP 클래스 ComponentInstaller\Installer

상속: extends Composer\Installer\LibraryInstaller
파일 보기 프로젝트 열기: robloach/component-installer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$componentDir The location where Components are to be installed.

공개 메소드들

메소드 설명
getComponentDir ( ) Retrieves the Installer's provided component directory.
getComponentPath ( Composer\Package\PackageInterface $package ) : string Gets the destination Component directory.
installCode ( Composer\Package\PackageInterface $package ) Before installing the Component, be sure its destination is clear first.
postAutoloadDump ( Composer\Script\Event $event ) Script callback; Acted on after the autoloader is dumped.
removeCode ( Composer\Package\PackageInterface $package ) Remove both the installed code and files from the Component directory.
removeComponent ( Composer\Package\PackageInterface $package ) : boolean Remove a Component's files from the Component directory.
supports ( $packageType ) {@inheritDoc}

보호된 메소드들

메소드 설명
initializeVendorDir ( ) Initialize the Component directory, as well as the vendor directory.

메소드 상세

getComponentDir() 공개 메소드

Retrieves the Installer's provided component directory.
public getComponentDir ( )

getComponentPath() 공개 메소드

Gets the destination Component directory.
public getComponentPath ( Composer\Package\PackageInterface $package ) : string
$package Composer\Package\PackageInterface
리턴 string The path to where the final Component should be installed.

initializeVendorDir() 보호된 메소드

Initialize the Component directory, as well as the vendor directory.
protected initializeVendorDir ( )

installCode() 공개 메소드

Before installing the Component, be sure its destination is clear first.
public installCode ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

postAutoloadDump() 공개 정적인 메소드

Script callback; Acted on after the autoloader is dumped.
public static postAutoloadDump ( Composer\Script\Event $event )
$event Composer\Script\Event

removeCode() 공개 메소드

Remove both the installed code and files from the Component directory.
public removeCode ( Composer\Package\PackageInterface $package )
$package Composer\Package\PackageInterface

removeComponent() 공개 메소드

Remove a Component's files from the Component directory.
public removeComponent ( Composer\Package\PackageInterface $package ) : boolean
$package Composer\Package\PackageInterface
리턴 boolean

supports() 공개 메소드

Components are supported by all packages. This checks wheteher or not the entire package is a "component", as well as injects the script to act on components embedded in packages that are not just "component" types.
public supports ( $packageType )

프로퍼티 상세

$componentDir 보호되어 있는 프로퍼티

The location where Components are to be installed.
protected $componentDir