14 use \InvalidArgumentException;
60 \
Magento\Framework\
App\FrontController $subject,
63 $storeCodeFromCookie = $this->storeCookieManager->getStoreCodeFromCookie();
64 if ($storeCodeFromCookie) {
66 $this->storeRepository->getActiveStoreByCode($storeCodeFromCookie);
68 $this->storeCookieManager->deleteStoreCookie($this->storeManager->getDefaultStoreView());
70 $this->storeCookieManager->deleteStoreCookie($this->storeManager->getDefaultStoreView());
71 }
catch (InvalidArgumentException $e) {
72 $this->storeCookieManager->deleteStoreCookie($this->storeManager->getDefaultStoreView());
__construct(StoreManagerInterface $storeManager, StoreCookieManagerInterface $storeCookieManager, StoreRepositoryInterface $storeRepository)
beforeDispatch(\Magento\Framework\App\FrontController $subject, \Magento\Framework\App\RequestInterface $request)