PHP 클래스 GrumPHP\Composer\GrumPHPPlugin

상속: implements Composer\Plugin\PluginInterface, implements Composer\EventDispatcher\EventSubscriberInterface
파일 보기 프로젝트 열기: phpro/grumphp

보호된 프로퍼티들

프로퍼티 타입 설명
$composer Composer\Composer
$configureScheduled boolean
$initScheduled boolean
$io Composer\IO\IOInterface

공개 메소드들

메소드 설명
activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
getSubscribedEvents ( ) Attach package installation events:
postPackageInstall ( Composer\Installer\PackageEvent $event ) When this package is updated, the git hook is also initialized
postPackageUpdate ( Composer\Installer\PackageEvent $event ) When this package is updated, the git hook is also updated
prePackageUninstall ( Composer\Installer\PackageEvent $event ) When this package is uninstalled, the generated git hooks need to be removed
runScheduledTasks ( Composer\Script\Event $event )

보호된 메소드들

메소드 설명
deInitGitHook ( ) Deinitialize git hooks
guardIsGrumPhpPackage ( Composer\Package\PackageInterface $package ) : boolean
initGitHook ( ) Initialize git hooks
runGrumPhpCommand ( $command ) Run the GrumPHP console to (de)init the git hooks

메소드 상세

activate() 공개 메소드

public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io )
$composer Composer\Composer
$io Composer\IO\IOInterface

deInitGitHook() 보호된 메소드

Deinitialize git hooks
protected deInitGitHook ( )

getSubscribedEvents() 공개 정적인 메소드

public static getSubscribedEvents ( )

guardIsGrumPhpPackage() 보호된 메소드

protected guardIsGrumPhpPackage ( Composer\Package\PackageInterface $package ) : boolean
$package Composer\Package\PackageInterface
리턴 boolean

initGitHook() 보호된 메소드

Initialize git hooks
protected initGitHook ( )

postPackageInstall() 공개 메소드

When this package is updated, the git hook is also initialized
public postPackageInstall ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

postPackageUpdate() 공개 메소드

When this package is updated, the git hook is also updated
public postPackageUpdate ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

prePackageUninstall() 공개 메소드

When this package is uninstalled, the generated git hooks need to be removed
public prePackageUninstall ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent

runGrumPhpCommand() 보호된 메소드

Run the GrumPHP console to (de)init the git hooks
protected runGrumPhpCommand ( $command )
$command

runScheduledTasks() 공개 메소드

public runScheduledTasks ( Composer\Script\Event $event )
$event Composer\Script\Event

프로퍼티 상세

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

protected Composer,Composer $composer
리턴 Composer\Composer

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

protected bool $configureScheduled
리턴 boolean

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

protected bool $initScheduled
리턴 boolean

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

protected IOInterface,Composer\IO $io
리턴 Composer\IO\IOInterface