@@ -66,14 +66,14 @@ class Save extends \Magento\Customer\Controller\Adminhtml\Index implements HttpP
66
66
private $ subscriptionManager ;
67
67
68
68
/**
69
- * @var SetCustomerStore
69
+ * @var AddressRegistry
70
70
*/
71
- private $ customerStore ;
71
+ private $ addressRegistry ;
72
72
73
73
/**
74
- * @var AddressRegistry
74
+ * @var SetCustomerStore|null
75
75
*/
76
- private $ addressRegistry ;
76
+ private $ customerStore ;
77
77
78
78
/**
79
79
* Constructor
@@ -104,8 +104,8 @@ class Save extends \Magento\Customer\Controller\Adminhtml\Index implements HttpP
104
104
* @param ForwardFactory $resultForwardFactory
105
105
* @param JsonFactory $resultJsonFactory
106
106
* @param SubscriptionManagerInterface $subscriptionManager
107
- * @param SetCustomerStore $customerStore
108
107
* @param AddressRegistry|null $addressRegistry
108
+ * @param SetCustomerStore|null $customerStore
109
109
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
110
110
*/
111
111
public function __construct (
@@ -135,8 +135,8 @@ public function __construct(
135
135
ForwardFactory $ resultForwardFactory ,
136
136
JsonFactory $ resultJsonFactory ,
137
137
SubscriptionManagerInterface $ subscriptionManager ,
138
- SetCustomerStore $ customerStore ,
139
- AddressRegistry $ addressRegistry = null
138
+ AddressRegistry $ addressRegistry = null ,
139
+ ? SetCustomerStore $ customerStore = null
140
140
) {
141
141
parent ::__construct (
142
142
$ context ,
@@ -166,8 +166,8 @@ public function __construct(
166
166
$ resultJsonFactory
167
167
);
168
168
$ this ->subscriptionManager = $ subscriptionManager ;
169
- $ this ->customerStore = $ customerStore ;
170
169
$ this ->addressRegistry = $ addressRegistry ?: ObjectManager::getInstance ()->get (AddressRegistry::class);
170
+ $ this ->customerStore = $ customerStore ?: ObjectManager::getInstance ()->get (SetCustomerStore::class);
171
171
}
172
172
173
173
/**
0 commit comments