PHP 클래스 PHPComposter\PHPComposter\Plugin
This main class activates and sets up the PHP Composter system within the package's .git folder.
파일 보기
프로젝트 열기: php-composter/php-composter
보호된 프로퍼티들
프로퍼티 |
타입 |
설명 |
|
$io |
Composer\IO\IOInterface |
Instance of the IO interface. |
|
공개 메소드들
메소드 |
설명 |
|
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) |
Activate the Composer plugin. |
|
getConfig ( ) : string |
Generate the config file. |
|
getSubscribedEvents ( ) : string>\array |
Get the event subscriber configuration for this plugin. |
|
persistConfig ( Composer\Script\Event $event ) |
Persist the stored configuration. |
|
보호된 메소드들
메소드 |
설명 |
|
cleanUp ( Composer\Util\Filesystem $filesystem ) |
Clean up previous installation. |
|
createGitHooks ( Composer\Util\Filesystem $filesystem ) |
Symlink each known Git hook to the PHP Composter bootstrapping script. |
|
getGitHookNames ( ) : array |
Get an array with all known Git hooks. |
|
linkBootstrapFiles ( Composer\Util\Filesystem $filesystem ) |
Symlink the bootstrapping code into the .git folder. |
|
메소드 상세
Activate the Composer plugin.
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) |
$composer |
Composer\Composer |
Reference to the Composer instance. |
$io |
Composer\IO\IOInterface |
Reference to the IO interface. |
Clean up previous installation.
protected cleanUp ( Composer\Util\Filesystem $filesystem ) |
$filesystem |
Composer\Util\Filesystem |
Reference to the Filesystem instance. |
Symlink each known Git hook to the PHP Composter bootstrapping script.
protected createGitHooks ( Composer\Util\Filesystem $filesystem ) |
$filesystem |
Composer\Util\Filesystem |
Reference to the Filesystem instance. |
Generate the config file.
getGitHookNames()
보호된 정적인 메소드
Get an array with all known Git hooks.
getSubscribedEvents()
공개 정적인 메소드
Get the event subscriber configuration for this plugin.
linkBootstrapFiles()
보호된 메소드
Symlink the bootstrapping code into the .git folder.
protected linkBootstrapFiles ( Composer\Util\Filesystem $filesystem ) |
$filesystem |
Composer\Util\Filesystem |
Reference to the Filesystem instance. |
persistConfig()
공개 정적인 메소드
Persist the stored configuration.
public static persistConfig ( Composer\Script\Event $event ) |
$event |
Composer\Script\Event |
Event that was triggered. |
프로퍼티 상세
Instance of the IO interface.
protected static IOInterface,Composer\IO $io |
리턴 |
Composer\IO\IOInterface |
|