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(
6868 AccountManagementInterface $ accountManagement ,
6969 TokenCollectionFactory $ tokenModelCollectionFactory ,
7070 CredentialsValidator $ validatorHelper ,
71- ManagerInterface $ eventManager
71+ ManagerInterface $ eventManager = null
7272 ) {
7373 $ this ->tokenModelFactory = $ tokenModelFactory ;
7474 $ this ->accountManagement = $ accountManagement ;
7575 $ this ->tokenModelCollectionFactory = $ tokenModelCollectionFactory ;
7676 $ this ->validatorHelper = $ validatorHelper ;
77- $ this ->eventManager = $ eventManager ;
77+ $ this ->eventManager = $ eventManager ?: \ Magento \ Framework \ App \ObjectManager:: getInstance ()-> get (ManagerInterface::class) ;
7878 }
7979
8080 /**
You can’t perform that action at this time.
0 commit comments