예제 #1
0
 /**
  * Creates and returns a new PackageEvent with the given operation.
  *
  * @param PackageEvent $event
  * @param OperationInterface $operation
  * @return PackageEvent
  */
 private function createPackageEventWithOperation(PackageEvent $event, OperationInterface $operation)
 {
     return new PackageEvent($event->getName(), $this->composer, $this->io, $event->isDevMode(), $event->getPolicy(), $event->getPool(), $event->getInstalledRepo(), $event->getRequest(), $event->getOperations(), $operation);
 }