File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/Sales/Model/Service Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2222 * Service is responsible for handling failed payment transactions.
2323 *
2424 * It depends on Stores > Configuration > Sales > Checkout > Payment Failed Emails configuration.
25+ *
26+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2527 */
2628class PaymentFailuresService implements PaymentFailuresInterface
2729{
@@ -78,7 +80,7 @@ public function __construct(
7880 $ this ->transportBuilder = $ transportBuilder ;
7981 $ this ->localeDate = $ localeDate ;
8082 $ this ->cartRepository = $ cartRepository ;
81- $ this ->logger = $ logger ?: ObjectManager::getInstance ()->create (LoggerInterface::class);
83+ $ this ->logger = $ logger ?: ObjectManager::getInstance ()->get (LoggerInterface::class);
8284 }
8385
8486 /**
You can’t perform that action at this time.
0 commit comments