File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
app/code/Magento/Customer/Model Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 77namespace Magento \Customer \Model ;
88
99use Magento \Customer \Model \ResourceModel \Customer as CustomerResourceModel ;
10- use Magento \Framework \App \ObjectManager ;
1110use Magento \Framework \Exception \NoSuchEntityException ;
1211
1312/**
@@ -33,16 +32,16 @@ class CustomerAuthUpdate
3332 /**
3433 * @param CustomerRegistry $customerRegistry
3534 * @param CustomerResourceModel $customerResourceModel
36- * @param CustomerFactory|null $customerFactory
35+ * @param CustomerFactory $customerFactory
3736 */
3837 public function __construct (
3938 CustomerRegistry $ customerRegistry ,
4039 CustomerResourceModel $ customerResourceModel ,
41- CustomerFactory $ customerFactory = null
40+ CustomerFactory $ customerFactory
4241 ) {
4342 $ this ->customerRegistry = $ customerRegistry ;
4443 $ this ->customerResourceModel = $ customerResourceModel ;
45- $ this ->customerFactory = $ customerFactory ?: ObjectManager:: getInstance ()-> get (CustomerFactory::class) ;
44+ $ this ->customerFactory = $ customerFactory ;
4645 }
4746
4847 /**
You can’t perform that action at this time.
0 commit comments