Property | Type | Description | |
---|---|---|---|
$composer | Composer\Composer | ||
$configureScheduled | boolean | ||
$initScheduled | boolean | ||
$io | Composer\IO\IOInterface |
Method | Description | |
---|---|---|
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 ) |
Method | Description | |
---|---|---|
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 | |
return | 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 |