50 \
Magento\Persistent\Helper\Data $persistentData,
51 \
Magento\Customer\Model\Session $customerSession,
56 $this->_persistentData = $persistentData;
57 $this->_customerSession = $customerSession;
68 if (!$this->_persistentData->canProcess(
$observer) || !$this->_persistentSession->isPersistent()) {
72 $this->_persistentSession->getSession()->removePersistentCookie();
74 if (!$this->_customerSession->isLoggedIn()) {
75 $this->_customerSession->setCustomerId(
null)->setCustomerGroupId(
null);
78 $this->quoteManager->setGuest();
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession, \Magento\Persistent\Model\QuoteManager $quoteManager)
execute(\Magento\Framework\Event\Observer $observer)