diff --git a/vendor/magento/module-customer/Model/EmailNotification.php b/vendor/magento/module-customer/Model/EmailNotification.php index a71cf79a4f51b..40530878be861 100644 --- a/vendor/magento/module-customer/Model/EmailNotification.php +++ b/vendor/magento/module-customer/Model/EmailNotification.php @@ -1,7 +1,7 @@ emulation->startEnvironmentEmulation($storeId, \Magento\Framework\App\Area::AREA_FRONTEND); $transport = $this->transportBuilder->setTemplateIdentifier($templateId) ->setTemplateOptions(['area' => 'frontend', 'store' => $storeId]) ->setTemplateVars($templateParams) @@ -304,7 +305,6 @@ private function sendEmailTemplate( ->addTo($email, $this->customerViewHelper->getCustomerName($customer)) ->getTransport(); - $this->emulation->startEnvironmentEmulation($storeId, \Magento\Framework\App\Area::AREA_FRONTEND); $transport->sendMessage(); $this->emulation->stopEnvironmentEmulation(); } diff --git a/vendor/magento/module-store-graph-ql/Plugin/LocalizeEmail.php b/vendor/magento/module-store-graph-ql/Plugin/LocalizeEmail.php deleted file mode 100644 index f3d3924b15280..0000000000000 --- a/vendor/magento/module-store-graph-ql/Plugin/LocalizeEmail.php +++ /dev/null @@ -1,83 +0,0 @@ -storeManager = $storeManager; - $this->emulation = $emulation; - $this->areaList = $areaList; - $this->appState = $appState; - } - - /** - * Emulate the correct store during email preparation - * - * @param TransportBuilder $subject - * @param \Closure $proceed - * @return mixed - * @throws NoSuchEntityException|LocalizedException - * @SuppressWarnings(PHPMD.UnusedFormalParameter) - */ - public function aroundGetTransport(TransportBuilder $subject, \Closure $proceed) - { - // Load translations for the app - $area = $this->areaList->getArea($this->appState->getAreaCode()); - $area->load(AreaInterface::PART_TRANSLATE); - - $currentStore = $this->storeManager->getStore(); - $this->emulation->startEnvironmentEmulation($currentStore->getId()); - $output = $proceed(); - $this->emulation->stopEnvironmentEmulation(); - - return $output; - } -} diff --git a/vendor/magento/module-store-graph-ql/etc/graphql/di.xml b/vendor/magento/module-store-graph-ql/etc/graphql/di.xml index 4248a5d0065e0..c44e996e54385 100644 --- a/vendor/magento/module-store-graph-ql/etc/graphql/di.xml +++ b/vendor/magento/module-store-graph-ql/etc/graphql/di.xml @@ -1,8 +1,8 @@ @@ -34,9 +34,6 @@ - - -