14
14
use Magento \Payment \Block \Form \Cc ;
15
15
use Magento \Payment \Helper \Data ;
16
16
use Magento \Payment \Model \Config ;
17
- use Magento \Store \Model \StoreManagerInterface ;
18
17
use Magento \Vault \Model \VaultPaymentInterface ;
19
18
20
19
/**
@@ -43,18 +42,12 @@ class Form extends Cc
43
42
*/
44
43
private $ paymentDataHelper ;
45
44
46
- /**
47
- * @var StoreManagerInterface
48
- */
49
- private $ storeManager ;
50
-
51
45
/**
52
46
* @param Context $context
53
47
* @param Config $paymentConfig
54
48
* @param Quote $sessionQuote
55
49
* @param GatewayConfig $gatewayConfig
56
50
* @param CcType $ccType
57
- * @param StoreManagerInterface $storeManager
58
51
* @param array $data
59
52
*/
60
53
public function __construct (
@@ -63,14 +56,12 @@ public function __construct(
63
56
Quote $ sessionQuote ,
64
57
GatewayConfig $ gatewayConfig ,
65
58
CcType $ ccType ,
66
- StoreManagerInterface $ storeManager ,
67
59
array $ data = []
68
60
) {
69
61
parent ::__construct ($ context , $ paymentConfig , $ data );
70
62
$ this ->sessionQuote = $ sessionQuote ;
71
63
$ this ->gatewayConfig = $ gatewayConfig ;
72
64
$ this ->ccType = $ ccType ;
73
- $ this ->storeManager = $ storeManager ;
74
65
}
75
66
76
67
/**
@@ -99,7 +90,7 @@ public function useCvv()
99
90
*/
100
91
public function isVaultEnabled ()
101
92
{
102
- $ storeId = $ this ->storeManager ->getStore ()->getId ();
93
+ $ storeId = $ this ->_storeManager ->getStore ()->getId ();
103
94
$ vaultPayment = $ this ->getVaultPayment ();
104
95
return $ vaultPayment ->isActive ($ storeId );
105
96
}
0 commit comments