11 use Magento\Quote\Model\QuoteIdMaskFactory;
19 private $persistentSession;
24 private $persistentHelper;
29 private $checkoutSession;
34 private $quoteIdMaskFactory;
39 private $customerSession;
49 PersistentHelper $persistentHelper,
50 PersistentSession $persistentSession,
52 QuoteIdMaskFactory $quoteIdMaskFactory,
55 $this->persistentHelper = $persistentHelper;
57 $this->checkoutSession = $checkoutSession;
58 $this->quoteIdMaskFactory = $quoteIdMaskFactory;
59 $this->customerSession = $customerSession;
68 public function afterGetConfig(\
Magento\Checkout\Model\DefaultConfigProvider $subject, array
$result)
70 if ($this->persistentHelper->isEnabled()
71 && $this->persistentSession->isPersistent()
72 && !$this->customerSession->isLoggedIn()
77 $this->checkoutSession->getQuote()->getId(),
__construct(PersistentHelper $persistentHelper, PersistentSession $persistentSession, CheckoutSession $checkoutSession, QuoteIdMaskFactory $quoteIdMaskFactory, CustomerSession $customerSession)