@@ -77,8 +77,8 @@ class Fulltext implements
77
77
* @param IndexSwitcherInterface $indexSwitcher
78
78
* @param StateFactory $indexScopeStateFactory
79
79
* @param DimensionProviderInterface $dimensionProvider
80
- * @param ProcessManager $processManager
81
80
* @param array $data
81
+ * @param ProcessManager $processManager
82
82
*/
83
83
public function __construct (
84
84
FullFactory $ fullActionFactory ,
@@ -87,8 +87,8 @@ public function __construct(
87
87
IndexSwitcherInterface $ indexSwitcher ,
88
88
StateFactory $ indexScopeStateFactory ,
89
89
DimensionProviderInterface $ dimensionProvider ,
90
- ProcessManager $ processManager ,
91
- array $ data
90
+ array $ data ,
91
+ ProcessManager $ processManager = null
92
92
) {
93
93
$ this ->fullAction = $ fullActionFactory ->create (['data ' => $ data ]);
94
94
$ this ->indexerHandlerFactory = $ indexerHandlerFactory ;
@@ -97,7 +97,9 @@ public function __construct(
97
97
$ this ->indexSwitcher = $ indexSwitcher ;
98
98
$ this ->indexScopeState = $ indexScopeStateFactory ->create ();
99
99
$ this ->dimensionProvider = $ dimensionProvider ;
100
- $ this ->processManager = $ processManager ;
100
+ $ this ->processManager = $ processManager ?: \Magento \Framework \App \ObjectManager::getInstance ()->get (
101
+ ProcessManager::class
102
+ );
101
103
}
102
104
103
105
/**
0 commit comments