dispatch event when cart is duplicated

This commit is contained in:
Manuel Raynaud
2013-08-02 16:01:21 +02:00
parent fe850718cc
commit 9995daa158
5 changed files with 23 additions and 33 deletions

View File

@@ -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)
{
}
}