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->_persistentSession->isPersistent() || $this->_customerSession->isLoggedIn()) {
78 $configFilePath =
$observer->getEvent()->getConfigFilePath();
79 if (!$configFilePath) {
80 $configFilePath = $this->_persistentData->getPersistentConfigFilePath();
84 $persistentConfig = $this->_persistentConfigFactory->create();
85 $persistentConfig->setConfigFilePath($configFilePath);
87 foreach ($persistentConfig->getBlockConfigInfo(get_class(
$block)) as $persistentConfigInfo) {
88 $persistentConfig->fireOne($persistentConfigInfo,
$block);
__construct(\Magento\Persistent\Helper\Session $persistentSession, \Magento\Persistent\Helper\Data $persistentData, \Magento\Customer\Model\Session $customerSession, \Magento\Persistent\Model\Persistent\ConfigFactory $persistentConfigFactory)
$_persistentConfigFactory
execute(Observer $observer)