Skip to content

Commit 51d2a40

Browse files
committed
MAGETWO-53238: Vault Provider field contains Payflow Pro option in countries which don't have such solution
- Removed redundant dependency
1 parent e8b29c7 commit 51d2a40

File tree

1 file changed

+1
-10
lines changed
  • app/code/Magento/Braintree/Block

1 file changed

+1
-10
lines changed

app/code/Magento/Braintree/Block/Form.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Magento\Payment\Block\Form\Cc;
1515
use Magento\Payment\Helper\Data;
1616
use Magento\Payment\Model\Config;
17-
use Magento\Store\Model\StoreManagerInterface;
1817
use Magento\Vault\Model\VaultPaymentInterface;
1918

2019
/**
@@ -43,18 +42,12 @@ class Form extends Cc
4342
*/
4443
private $paymentDataHelper;
4544

46-
/**
47-
* @var StoreManagerInterface
48-
*/
49-
private $storeManager;
50-
5145
/**
5246
* @param Context $context
5347
* @param Config $paymentConfig
5448
* @param Quote $sessionQuote
5549
* @param GatewayConfig $gatewayConfig
5650
* @param CcType $ccType
57-
* @param StoreManagerInterface $storeManager
5851
* @param array $data
5952
*/
6053
public function __construct(
@@ -63,14 +56,12 @@ public function __construct(
6356
Quote $sessionQuote,
6457
GatewayConfig $gatewayConfig,
6558
CcType $ccType,
66-
StoreManagerInterface $storeManager,
6759
array $data = []
6860
) {
6961
parent::__construct($context, $paymentConfig, $data);
7062
$this->sessionQuote = $sessionQuote;
7163
$this->gatewayConfig = $gatewayConfig;
7264
$this->ccType = $ccType;
73-
$this->storeManager = $storeManager;
7465
}
7566

7667
/**
@@ -99,7 +90,7 @@ public function useCvv()
9990
*/
10091
public function isVaultEnabled()
10192
{
102-
$storeId = $this->storeManager->getStore()->getId();
93+
$storeId = $this->_storeManager->getStore()->getId();
10394
$vaultPayment = $this->getVaultPayment();
10495
return $vaultPayment->isActive($storeId);
10596
}

0 commit comments

Comments
 (0)