File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Integration/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ public function __construct(
68
68
AccountManagementInterface $ accountManagement ,
69
69
TokenCollectionFactory $ tokenModelCollectionFactory ,
70
70
CredentialsValidator $ validatorHelper ,
71
- ManagerInterface $ eventManager
71
+ ManagerInterface $ eventManager = null
72
72
) {
73
73
$ this ->tokenModelFactory = $ tokenModelFactory ;
74
74
$ this ->accountManagement = $ accountManagement ;
75
75
$ this ->tokenModelCollectionFactory = $ tokenModelCollectionFactory ;
76
76
$ this ->validatorHelper = $ validatorHelper ;
77
- $ this ->eventManager = $ eventManager ;
77
+ $ this ->eventManager = $ eventManager ?: \ Magento \ Framework \ App \ObjectManager:: getInstance ()-> get (ManagerInterface::class) ;
78
78
}
79
79
80
80
/**
You can’t perform that action at this time.
0 commit comments