if (!
$invalidLogId) { return [];
} $logEntity =
$this->
getLogEntity($invalidLogId);
$config = Config::
fromLog($logEntity);
$reader =
new CsvReader();
$filesystem =
$this->
getContainer()->
get('shopware.filesystem.private'
);
/** @var ImportExportFileEntity $file */
$file =
$logEntity->
getFile();
$resource =
$filesystem->
readStream($file->
getPath());
$log =
$reader->
read($config,
$resource, 0
);
return $log instanceof \Traversable ?
iterator_to_array($log) :
[];
} /**
* @param array<array<string, string>> $customFields
*/
protected function createCustomField(array
$customFields, string
$entityName): void
{ $repo =
$this->
getContainer()->
get('custom_field_set.repository'
);