41 \
Magento\Persistent\Helper\Data $persistentData,
42 \
Magento\Customer\Model\Session $customerSession
45 $this->_persistentData = $persistentData;
46 $this->_customerSession = $customerSession;
58 $action =
$observer->getEvent()->getControllerAction();
59 if ($action instanceof \
Magento\Persistent\Controller\Index) {
60 if (($this->_persistentSession->isPersistent() && !$this->_customerSession->isLoggedIn())
61 || !$this->_persistentData->isShoppingCartPersist()
63 $action->setClearCheckoutSession(
false);
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession)
execute(Observer $observer)