8 use \Magento\Store\Model\StoreResolver\ReaderList;
9 use \Magento\Store\Model\ScopeInterface;
66 \
Magento\Framework\
App\FrontController $subject,
69 $reader = $this->readerList->getReader($this->runMode);
70 $defaultStoreId = $reader->getDefaultStoreId($this->scopeCode);
71 $this->storeManager->setCurrentStore($defaultStoreId);
beforeDispatch(\Magento\Framework\App\FrontController $subject, \Magento\Framework\App\RequestInterface $request)
__construct(\Magento\Store\Model\StoreManagerInterface $storeManager, ReaderList $readerList, $runMode=ScopeInterface::SCOPE_STORE, $scopeCode=null)