GrumPHP\Composer\GrumPHPPlugin::postPackageInstall PHP Метод

postPackageInstall() публичный Метод

When this package is updated, the git hook is also initialized
public postPackageInstall ( Composer\Installer\PackageEvent $event )
$event Composer\Installer\PackageEvent
    public function postPackageInstall(PackageEvent $event)
    {
        /** @var InstallOperation $operation */
        $operation = $event->getOperation();
        $package = $operation->getPackage();
        if (!$this->guardIsGrumPhpPackage($package)) {
            return;
        }
        // Schedule init when command is completed
        $this->configureScheduled = true;
        $this->initScheduled = true;
    }