5
5
*/
6
6
namespace Magento \CatalogSearch \Model \Indexer \Fulltext \Action ;
7
7
8
+ use Magento \CatalogSearch \Model \Indexer \Fulltext ;
9
+
8
10
/**
9
11
* @SuppressWarnings(PHPMD.TooManyFields)
10
12
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -178,7 +180,8 @@ public function __construct(
178
180
\Magento \Framework \Locale \ResolverInterface $ localeResolver ,
179
181
\Magento \Framework \Stdlib \DateTime \TimezoneInterface $ localeDate ,
180
182
\Magento \CatalogSearch \Model \Resource \Fulltext $ fulltextResource ,
181
- \Magento \Framework \Search \Request \DimensionFactory $ dimensionFactory
183
+ \Magento \Framework \Search \Request \DimensionFactory $ dimensionFactory ,
184
+ \Magento \Indexer \Model \ConfigInterface $ indexerConfig
182
185
) {
183
186
$ this ->resource = $ resource ;
184
187
$ this ->catalogProductType = $ catalogProductType ;
@@ -190,7 +193,8 @@ public function __construct(
190
193
$ this ->scopeConfig = $ scopeConfig ;
191
194
$ this ->storeManager = $ storeManager ;
192
195
$ this ->engine = $ engine ;
193
- $ this ->indexHandler = $ indexHandlerFactory ->create ();
196
+ $ configData = $ indexerConfig ->getIndexer (Fulltext::INDEXER_ID );
197
+ $ this ->indexHandler = $ indexHandlerFactory ->create (['data ' => $ configData ]);
194
198
$ this ->dateTime = $ dateTime ;
195
199
$ this ->localeResolver = $ localeResolver ;
196
200
$ this ->localeDate = $ localeDate ;
0 commit comments