Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }