23
23
use Magento \Framework \App \RequestInterface ;
24
24
use Magento \Framework \Exception \LocalizedException ;
25
25
use Magento \Framework \Exception \NoSuchEntityException ;
26
- use Magento \Framework \Filesystem ;
27
26
use Magento \Framework \Registry ;
28
27
use Magento \Framework \Stdlib \ArrayManager ;
29
28
use Magento \Framework \Stdlib \ArrayUtils ;
@@ -168,7 +167,7 @@ class DataProvider extends ModifierPoolDataProvider
168
167
private $ arrayUtils ;
169
168
170
169
/**
171
- * @var Filesystem
170
+ * @var FileInfo
172
171
*/
173
172
private $ fileInfo ;
174
173
@@ -195,7 +194,7 @@ class DataProvider extends ModifierPoolDataProvider
195
194
* @param ArrayUtils|null $arrayUtils
196
195
* @param ScopeOverriddenValue|null $scopeOverriddenValue
197
196
* @param ArrayManager|null $arrayManager
198
- * @param Filesystem |null $fileInfo
197
+ * @param FileInfo |null $fileInfo
199
198
* @throws LocalizedException
200
199
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
201
200
*/
@@ -217,7 +216,7 @@ public function __construct(
217
216
?ArrayUtils $ arrayUtils = null ,
218
217
ScopeOverriddenValue $ scopeOverriddenValue = null ,
219
218
ArrayManager $ arrayManager = null ,
220
- Filesystem $ fileInfo = null
219
+ FileInfo $ fileInfo = null
221
220
) {
222
221
$ this ->eavValidationRules = $ eavValidationRules ;
223
222
$ this ->collection = $ categoryCollectionFactory ->create ();
@@ -232,7 +231,7 @@ public function __construct(
232
231
$ this ->scopeOverriddenValue = $ scopeOverriddenValue ?:
233
232
ObjectManager::getInstance ()->get (ScopeOverriddenValue::class);
234
233
$ this ->arrayManager = $ arrayManager ?: ObjectManager::getInstance ()->get (ArrayManager::class);
235
- $ this ->fileInfo = $ fileInfo ?: ObjectManager::getInstance ()->get (Filesystem ::class);
234
+ $ this ->fileInfo = $ fileInfo ?: ObjectManager::getInstance ()->get (FileInfo ::class);
236
235
237
236
parent ::__construct ($ name , $ primaryFieldName , $ requestFieldName , $ meta , $ data , $ pool );
238
237
}
0 commit comments