프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
public activate ( Composer\Composer $composer, Composer\IO\IOInterface $io ) | ||
$composer | Composer\Composer | |
$io | Composer\IO\IOInterface |
protected guardIsGrumPhpPackage ( Composer\Package\PackageInterface $package ) : boolean | ||
$package | Composer\Package\PackageInterface | |
리턴 | boolean |
public postPackageInstall ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent |
public postPackageUpdate ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent |
public prePackageUninstall ( Composer\Installer\PackageEvent $event ) | ||
$event | Composer\Installer\PackageEvent |
protected runGrumPhpCommand ( $command ) | ||
$command |
public runScheduledTasks ( Composer\Script\Event $event ) | ||
$event | Composer\Script\Event |