PHP 클래스 PHPComposter\PHPComposter\Plugin

This main class activates and sets up the PHP Composter system within the package's .git folder.
부터: 0.1.0
저자: Alain Schlesser ([email protected])
상속: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: 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() 공개 메소드

Activate the Composer plugin.
부터: 0.1.0
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.

cleanUp() 보호된 메소드

Clean up previous installation.
부터: 0.1.0
protected cleanUp ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

createGitHooks() 보호된 메소드

Symlink each known Git hook to the PHP Composter bootstrapping script.
부터: 0.1.0
protected createGitHooks ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

getConfig() 공개 정적인 메소드

Generate the config file.
부터: 0.1.0
public static getConfig ( ) : string
리턴 string Generated Config file.

getGitHookNames() 보호된 정적인 메소드

Get an array with all known Git hooks.
부터: 0.1.0
protected static getGitHookNames ( ) : array
리턴 array Array of strings.

getSubscribedEvents() 공개 정적인 메소드

Get the event subscriber configuration for this plugin.
public static getSubscribedEvents ( ) : string>\array
리턴 string>\array

linkBootstrapFiles() 보호된 메소드

Symlink the bootstrapping code into the .git folder.
부터: 0.1.0
protected linkBootstrapFiles ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.

persistConfig() 공개 정적인 메소드

Persist the stored configuration.
부터: 0.1.0
public static persistConfig ( Composer\Script\Event $event )
$event Composer\Script\Event Event that was triggered.

프로퍼티 상세

$io 보호되어 있는 정적으로 프로퍼티

Instance of the IO interface.
부터: 0.1.0
protected static IOInterface,Composer\IO $io
리턴 Composer\IO\IOInterface