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 7
7
namespace Magento \Customer \Model ;
8
8
9
9
use Magento \Customer \Model \ResourceModel \Customer as CustomerResourceModel ;
10
- use Magento \Framework \App \ObjectManager ;
11
10
use Magento \Framework \Exception \NoSuchEntityException ;
12
11
13
12
/**
@@ -33,16 +32,16 @@ class CustomerAuthUpdate
33
32
/**
34
33
* @param CustomerRegistry $customerRegistry
35
34
* @param CustomerResourceModel $customerResourceModel
36
- * @param CustomerFactory|null $customerFactory
35
+ * @param CustomerFactory $customerFactory
37
36
*/
38
37
public function __construct (
39
38
CustomerRegistry $ customerRegistry ,
40
39
CustomerResourceModel $ customerResourceModel ,
41
- CustomerFactory $ customerFactory = null
40
+ CustomerFactory $ customerFactory
42
41
) {
43
42
$ this ->customerRegistry = $ customerRegistry ;
44
43
$ this ->customerResourceModel = $ customerResourceModel ;
45
- $ this ->customerFactory = $ customerFactory ?: ObjectManager:: getInstance ()-> get (CustomerFactory::class) ;
44
+ $ this ->customerFactory = $ customerFactory ;
46
45
}
47
46
48
47
/**
You can’t perform that action at this time.
0 commit comments