We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ef7f92 commit 94fc33eCopy full SHA for 94fc33e
app/code/Magento/Vault/Model/AbstractPaymentTokenFactory.php
@@ -36,10 +36,12 @@ public function __construct(
36
ObjectManagerInterface $objectManager,
37
PaymentTokenFactoryInterface $paymentTokenFactory = null
38
) {
39
+ if (!$paymentTokenFactory) {
40
+ $paymentTokenFactory = $this->objectManager->get(PaymentTokenFactoryInterface::class);
41
+ }
42
+
43
$this->objectManager = $objectManager;
- $this->paymentTokenFactory = $paymentTokenFactory ?: $this->objectManager->get(
- PaymentTokenFactoryInterface::class
- );
44
+ $this->paymentTokenFactory = $paymentTokenFactory;
45
}
46
47
/**
0 commit comments