if ($originalFileName === null
) { $originalFileName =
$this->fileService->
generateFilename($profileEntity);
} if ($profileEntity->
getMapping() !== null
) { $mappings = MappingCollection::
fromIterable($profileEntity->
getMapping());
$profileEntity->
setMapping($mappings->
sortByPosition());
} $fileEntity =
$this->fileService->
storeFile($context,
$expireDate, null,
$originalFileName,
$activity,
$destinationPath);
return $this->
createLog($context,
$activity,
$fileEntity,
$profileEntity,
$config);
} /**
* @param Config $config
*/
public function prepareImport( Context
$context,
string
$profileId,
\DateTimeInterface
$expireDate,
UploadedFile
$file,
array
$config =
[],