Skip to content

Commit 192a8a1

Browse files
committed
MAGETWO-71718: \Magento\Email\Model\Transport contains logic which will be overriden by any 3dparty transport
1 parent f65252c commit 192a8a1

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

app/code/Magento/Email/Model/Mail/TransportInterfacePlugin.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
*/
1818
class TransportInterfacePlugin
1919
{
20-
/**
21-
* Config path to mail sending setting that shows if email communications are disabled
22-
*/
23-
const XML_PATH_SYSTEM_SMTP_DISABLE = 'system/smtp/disable';
24-
2520
/**
2621
* @var ScopeConfigInterface
2722
*/
@@ -49,7 +44,7 @@ public function aroundSendMessage(
4944
TransportInterface $subject,
5045
\Closure $proceed
5146
) {
52-
if (!$this->scopeConfig->isSetFlag(self::XML_PATH_SYSTEM_SMTP_DISABLE, ScopeInterface::SCOPE_STORE)) {
47+
if (!$this->scopeConfig->isSetFlag('system/smtp/disable', ScopeInterface::SCOPE_STORE)) {
5348
$proceed();
5449
}
5550
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class Template extends AbstractTemplate implements \Magento\Framework\Mail\Templ
5757
/**
5858
* Config path to mail sending setting that shows if email communications are disabled
5959
* @deprecated
60-
* @see \Magento\Email\Model\Mail\TransportInterfacePlugin::XML_PATH_SYSTEM_SMTP_DISABLE
6160
*/
6261
const XML_PATH_SYSTEM_SMTP_DISABLE = 'system/smtp/disable';
6362

0 commit comments

Comments
 (0)