public function dispatchOrderCouponOnApplyEvent(
        OrderInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new OrderCouponOnApplyEvent(
            $cart,
            $coupon
        );

        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::ORDER_COUPON_ONAPPLY,
            $event
        );
    }
public function dispatchOrderCouponOnApplyEvent(
        OrderInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new OrderCouponOnApplyEvent(
            $cart,
            $coupon
        );

        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::ORDER_COUPON_ONAPPLY,
            $event
        );
    }
public function dispatchOrderCouponOnApplyEvent ( OrderInterface $ cart , CouponInterface $ coupon ) { $ event = new OrderCouponOnApplyEvent ( $ cart , $ coupon ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartCouponEvents :: ORDER_COUPON_ONAPPLY , $ event ) ; }
Dispatch event just before a coupon is applied into an Order.

@param OrderInterface  $cart   Cart where to apply the coupon
@param CouponInterface $coupon Coupon to be applied

@return $this Self object
Dispatch event just before a coupon is applied into an Order .