47 \
Magento\Persistent\Helper\Data $persistentData,
48 \
Magento\Customer\Model\Session $customerSession,
52 $this->_persistentData = $persistentData;
53 $this->_customerSession = $customerSession;
66 $action =
$observer->getEvent()->getControllerAction();
67 if ($action instanceof \
Magento\Persistent\Controller\Index) {
68 if ((($this->_persistentSession->isPersistent() && !$this->_customerSession->isLoggedIn())
69 || $this->_persistentData->isShoppingCartPersist())
71 $this->quoteManager->setGuest(
true);
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession, \Magento\Persistent\Model\QuoteManager $quoteManager)
execute(Observer $observer)