Skip to content

Commit 48217de

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-71185' into MPI-PR-2.1-develop
2 parents 0ebe5ce + 39e752d commit 48217de

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

app/code/Magento/Braintree/Gateway/Http/Client/AbstractTransaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract class AbstractTransaction implements ClientInterface
3333
/**
3434
* @var BraintreeAdapter
3535
*/
36-
protected $braintreeAdapter;
36+
protected $braintree;
3737

3838
/**
3939
* @var BraintreeAdapterFactory

app/code/Magento/Braintree/Model/Adapter/BraintreeAdapter.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,20 @@ class BraintreeAdapter
2929
* All arguments have `null` values to provide backward compatibility. This class MUST be initialized only
3030
* via BraintreeAdapterFactory.
3131
*
32+
* @param Config|null $config
3233
* @param string|null $merchantId
3334
* @param string|null $publicKey
3435
* @param string|null $privateKey
3536
* @param string|null $environment
3637
*/
37-
public function __construct($merchantId = null, $publicKey = null, $privateKey = null, $environment = null)
38-
{
38+
public function __construct(
39+
Config $config = null,
40+
$merchantId = null,
41+
$publicKey = null,
42+
$privateKey = null,
43+
$environment = null
44+
) {
45+
$this->config = $config;
3946
$this->merchantId($merchantId);
4047
$this->publicKey($publicKey);
4148
$this->privateKey($privateKey);

0 commit comments

Comments
 (0)