예제 #1
0
파일: Coupon.php 프로젝트: alex63530/thelia
 /**
  * Clear all coupons in session.
  */
 public function clearAllCoupons()
 {
     // Tell coupons to clear any data they may have stored
     $this->couponManager->clear();
     $this->request->getSession()->setConsumedCoupons(array());
     $this->updateOrderDiscount(null);
 }
예제 #2
0
 /**
  * Clear all coupons in session.
  *
  * @param Event $event
  * @param $eventName
  * @param EventDispatcherInterface $dispatcher
  */
 public function clearAllCoupons(Event $event, $eventName, EventDispatcherInterface $dispatcher)
 {
     // Tell coupons to clear any data they may have stored
     $this->couponManager->clear();
     $this->getSession()->setConsumedCoupons(array());
     $this->updateOrderDiscount($event, $eventName, $dispatcher);
 }