49 \
Magento\Persistent\Helper\Data $persistentData,
50 \
Magento\Customer\Model\Session $customerSession,
51 \
Magento\Persistent\Model\Persistent\ConfigFactory $persistentConfigFactory
54 $this->_persistentData = $persistentData;
55 $this->_customerSession = $customerSession;
56 $this->_persistentConfigFactory = $persistentConfigFactory;
67 if (!$this->_persistentData->canProcess(
$observer)
68 || !$this->_persistentSession->isPersistent()
69 || $this->_customerSession->isLoggedIn()
74 $persistentConfig = $this->_persistentConfigFactory->create();
75 $persistentConfig->setConfigFilePath($this->_persistentData->getPersistentConfigFilePath())->fire();
$_persistentConfigFactory
execute(Observer $observer)
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession, \Magento\Persistent\Model\Persistent\ConfigFactory $persistentConfigFactory)