Skip to content

Commit c902812

Browse files
committed
fix: Allow PHP Config to read from current store level
1 parent 3d24bb0 commit c902812

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Config/Config.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Magento\Framework\App\Config\ScopeConfigInterface;
66
use Magento\Framework\View\Element\Block\ArgumentInterface;
7+
use Magento\Store\Model\ScopeInterface;
78

89
class Config implements ArgumentInterface
910
{
@@ -14,6 +15,9 @@ public function __construct(
1415

1516
public function enableMxValidationForEmail(): bool
1617
{
17-
return (bool)$this->scopeConfig->getValue('loki_components/validators/enable_mx_validation_for_email');
18+
return (bool)$this->scopeConfig->getValue(
19+
'loki_components/validators/enable_mx_validation_for_email',
20+
ScopeInterface::SCOPE_STORE
21+
);
1822
}
1923
}

0 commit comments

Comments
 (0)