@@ -222,7 +222,6 @@ public function __construct(
222
222
Config $ eavConfig ,
223
223
RequestInterface $ request ,
224
224
CategoryFactory $ categoryFactory ,
225
- DataInterfaceFactory $ uiConfigFactory ,
226
225
array $ meta = [],
227
226
array $ data = [],
228
227
PoolInterface $ pool = null ,
@@ -231,7 +230,8 @@ public function __construct(
231
230
ScopeOverriddenValue $ scopeOverriddenValue = null ,
232
231
ArrayManager $ arrayManager = null ,
233
232
FileInfo $ fileInfo = null ,
234
- ?Image $ categoryImage = null
233
+ ?Image $ categoryImage = null ,
234
+ ?DataInterfaceFactory $ uiConfigFactory = null
235
235
) {
236
236
$ this ->eavValidationRules = $ eavValidationRules ;
237
237
$ this ->collection = $ categoryCollectionFactory ->create ();
@@ -241,14 +241,17 @@ public function __construct(
241
241
$ this ->storeManager = $ storeManager ;
242
242
$ this ->request = $ request ;
243
243
$ this ->categoryFactory = $ categoryFactory ;
244
- $ this ->uiConfigFactory = $ uiConfigFactory ;
245
244
$ this ->auth = $ auth ?? ObjectManager::getInstance ()->get (AuthorizationInterface::class);
246
245
$ this ->arrayUtils = $ arrayUtils ?? ObjectManager::getInstance ()->get (ArrayUtils::class);
247
246
$ this ->scopeOverriddenValue = $ scopeOverriddenValue ?:
248
247
ObjectManager::getInstance ()->get (ScopeOverriddenValue::class);
249
248
$ this ->arrayManager = $ arrayManager ?: ObjectManager::getInstance ()->get (ArrayManager::class);
250
249
$ this ->fileInfo = $ fileInfo ?: ObjectManager::getInstance ()->get (FileInfo::class);
251
250
$ this ->categoryImage = $ categoryImage ?? ObjectManager::getInstance ()->get (Image::class);
251
+ $ this ->uiConfigFactory = $ uiConfigFactory ?? ObjectManager::getInstance ()->create (
252
+ DataInterfaceFactory::class,
253
+ ['instanceName ' => \Magento \Ui \Config \Data::class]
254
+ );
252
255
253
256
parent ::__construct ($ name , $ primaryFieldName , $ requestFieldName , $ meta , $ data , $ pool );
254
257
}
0 commit comments