/** * Occurring when a Coupon condition is about to be updated * * @param CouponCreateOrUpdateEvent $event Event creation or update Coupon condition */ public function updateCondition(CouponCreateOrUpdateEvent $event) { $modelCoupon = $event->getCouponModel(); $this->createOrUpdateCondition($modelCoupon, $event); }
/** * Occurring when a Coupon condition is about to be updated * * @param CouponCreateOrUpdateEvent $event Event creation or update Coupon condition * @param $eventName * @param EventDispatcherInterface $dispatcher */ public function updateCondition(CouponCreateOrUpdateEvent $event, $eventName, EventDispatcherInterface $dispatcher) { $modelCoupon = $event->getCouponModel(); $this->createOrUpdateCondition($modelCoupon, $event, $dispatcher); }