/** * @param \Generated\Shared\Transfer\CartChangeTransfer $cartChangeTransfer * * @return \Generated\Shared\Transfer\QuoteTransfer */ public function remove(CartChangeTransfer $cartChangeTransfer) { $expandedCartChangeTransfer = $this->expandChangedItems($cartChangeTransfer); $quoteTransfer = $this->cartStorageProvider->removeItems($expandedCartChangeTransfer); $this->messengerFacade->addSuccessMessage($this->createMessengerMessageTransfer(self::REMOVE_ITEMS_SUCCESS)); return $this->recalculate($quoteTransfer); }
/** * @param \Generated\Shared\Transfer\MessageTransfer $message * * @return void */ public function addSuccessMessage(MessageTransfer $message) { $this->messengerFacade->addSuccessMessage($message); }