public function dispatchPackageEvent($eventName, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)
    {
        return $this->doDispatch(new PackageEvent($eventName, $this->composer, $this->io, $devMode, $policy, $pool, $installedRepo, $request, $operations, $operation));
    }
public function dispatchPackageEvent($eventName, $devMode, PolicyInterface $policy, Pool $pool, CompositeRepository $installedRepo, Request $request, array $operations, OperationInterface $operation)
    {
        return $this->doDispatch(new PackageEvent($eventName, $this->composer, $this->io, $devMode, $policy, $pool, $installedRepo, $request, $operations, $operation));
    }
public function dispatchPackageEvent ( $ eventName , $ devMode , PolicyInterface $ policy , Pool $ pool , CompositeRepository $ installedRepo , Request $ request , array $ operations , OperationInterface $ operation ) { return $ this -> doDispatch ( new PackageEvent ( $ eventName , $ this -> composer , $ this -> io , $ devMode , $ policy , $ pool , $ installedRepo , $ request , $ operations , $ operation ) ) ; }
Dispatch a package event.

@param string              $eventName     The constant in PackageEvents
@param bool                $devMode       Whether or not we are in dev mode
@param PolicyInterface     $policy        The policy
@param Pool                $pool          The pool
@param CompositeRepository $installedRepo The installed repository
@param Request             $request       The request
@param array               $operations    The list of operations
@param OperationInterface  $operation     The package being installed/updated/removed

@return int return code of the executed script if any, for php scripts a false return
value is changed to 1, anything else to 0
Dispatch a package event .