File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public function __construct(
98
98
ManagerInterface $ messageManager ,
99
99
Escaper $ escaper ,
100
100
AppState $ appState ,
101
- CustomerSession $ customerSession = null
101
+ CustomerSession $ customerSession
102
102
) {
103
103
$ this ->_customerVat = $ customerVat ;
104
104
$ this ->_customerAddress = $ customerAddress ;
@@ -109,9 +109,6 @@ public function __construct(
109
109
$ this ->escaper = $ escaper ;
110
110
$ this ->appState = $ appState ;
111
111
$ this ->customerSession = $ customerSession ;
112
- if ($ this ->customerSession === null ) {
113
- $ this ->customerSession = \Magento \Framework \App \ObjectManager::getInstance ()->get (CustomerSession::class);
114
- }
115
112
}
116
113
117
114
/**
Original file line number Diff line number Diff line change 307
307
<type name =" Magento\Customer\Api\CustomerRepositoryInterface" >
308
308
<plugin name =" transactionWrapper" type =" Magento\Customer\Model\Plugin\CustomerRepository\TransactionWrapper" sortOrder =" -1" />
309
309
</type >
310
- <type name =" Magento\Customer\Observer\AfterAddressSaveObserver" >
311
- <arguments >
312
- <argument name =" customerSession" xsi : type =" object" >Magento\Customer\Model\Session</argument >
313
- </arguments >
314
- </type >
315
310
</config >
You can’t perform that action at this time.
0 commit comments