public function removeProduct(RemoveProductCommand $command) { $cart = $this->repository->getCart(); $cart->removeProduct(new UuidIdentity($command->getId())); $this->repository->setCart($cart); }