File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/internal/Magento/Framework/File Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ public function __construct(
181
181
Mime $ fileMime = null ,
182
182
DirectoryList $ directoryList = null
183
183
) {
184
+ $ this ->directoryList = $ directoryList ?: \Magento \Framework \App \ObjectManager::getInstance ()
185
+ ->get (DirectoryList::class);
184
186
$ this ->_setUploadFileId ($ fileId );
185
187
if (!file_exists ($ this ->_file ['tmp_name ' ])) {
186
188
$ code = empty ($ this ->_file ['tmp_name ' ]) ? self ::TMP_NAME_EMPTY : 0 ;
@@ -189,8 +191,6 @@ public function __construct(
189
191
$ this ->_fileExists = true ;
190
192
}
191
193
$ this ->fileMime = $ fileMime ?: \Magento \Framework \App \ObjectManager::getInstance ()->get (Mime::class);
192
- $ this ->directoryList = $ directoryList ?: \Magento \Framework \App \ObjectManager::getInstance ()
193
- ->get (DirectoryList::class);
194
194
}
195
195
196
196
/**
You can’t perform that action at this time.
0 commit comments