Skip to content

Commit 54c3249

Browse files
committed
AC-2391: Remove legacy variable resolver from email template processor
- remove plugin to avoid performance degradations
1 parent 4f2f26d commit 54c3249

File tree

3 files changed

+2
-32
lines changed

3 files changed

+2
-32
lines changed

app/code/Magento/Email/Model/AbstractTemplate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@ protected function addEmailVariables($variables, $storeId)
453453
if (!isset($variables['store'])) {
454454
$variables['store'] = $store;
455455
}
456+
$storeAddress = $variables['store']->getFormattedAddress();
457+
$variables['store']->setData('formatted_address', $storeAddress);
456458
if (!isset($variables['store']['frontend_name'])) {
457459
$variables['store']['frontend_name'] = $store->getFrontendName();
458460
}

app/code/Magento/Email/Model/Plugin/StoreAddress.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/code/Magento/Email/etc/di.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,4 @@
9393
</argument>
9494
</arguments>
9595
</type>
96-
<type name="Magento\Store\Model\Store">
97-
<plugin name="EmailTemplateStoreAddress" type="Magento\Email\Model\Plugin\StoreAddress"/>
98-
</type>
9996
</config>

0 commit comments

Comments
 (0)