removeBinBeforeCleanup example



  /** * PRE_PACKAGE_INSTALL event handler. * * @param \Composer\Installer\PackageEvent $event * The package event. */
  public function onPrePackageInstall(PackageEvent $event) {
    /** @var \Composer\Package\CompletePackage $package */
    $package = $event->getOperation()->getPackage();
    $this->removeBinBeforeCleanup($package);
  }

  /** * PRE_PACKAGE_UPDATE event handler. * * @param \Composer\Installer\PackageEvent $event * The package event. */
  public function onPrePackageUpdate(PackageEvent $event) {
    /** @var \Composer\Package\CompletePackage $package */
    $package = $event->getOperation()->getTargetPackage();
    
Home | Imprint | This part of the site doesn't use cookies.