dispatch event when cart is duplicated
This commit is contained in:
@@ -8,14 +8,6 @@ use Thelia\Model\Base\ProductSaleElementsQuery;
|
||||
|
||||
class Cart extends BaseCart
|
||||
{
|
||||
|
||||
protected $dispatcher;
|
||||
|
||||
public function setDispatcher(EventDispatcherInterface $dispatcher)
|
||||
{
|
||||
$this->dispatcher = $dispatcher;
|
||||
}
|
||||
|
||||
public function duplicate($token, Customer $customer = null)
|
||||
{
|
||||
$cartItems = $this->getCartItems();
|
||||
@@ -50,9 +42,4 @@ class Cart extends BaseCart
|
||||
|
||||
return $cart;
|
||||
}
|
||||
|
||||
protected function dispatchEvent($name)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user