54 \
Magento\Persistent\Helper\Data $persistentData,
56 \
Magento\Customer\Model\Session $customerSession,
57 \
Magento\Persistent\Model\SessionFactory $sessionFactory
59 $this->_persistentData = $persistentData;
61 $this->_customerSession = $customerSession;
62 $this->_sessionFactory = $sessionFactory;
73 if (!$this->_persistentData->canProcess(
$observer) || !$this->_persistentData->isEnabled()
74 || !$this->_persistentSession->isPersistent()
82 if ($this->_customerSession->isLoggedIn() ||
$request->getFullActionName() ==
'customer_account_logout') {
83 $this->_sessionFactory->create()
84 ->renewPersistentCookie(
85 $this->_persistentData->getLifeTime(),
86 $this->_customerSession->getCookiePath()
__construct(\Magento\Persistent\Helper\Data $persistentData, \Magento\Persistent\Helper\Session $persistentSession, \Magento\Customer\Model\Session $customerSession, \Magento\Persistent\Model\SessionFactory $sessionFactory)
execute(Observer $observer)