$delimiter =
(string) $request->request->
get('delimiter', ';'
);
$enclosure =
(string) $request->request->
get('enclosure', '"'
);
if ($file === null || !
$file->
isValid()) { throw RoutingException::
invalidRequestParameter('file'
);
} if (!\
is_string($sourceEntity)) { throw RoutingException::
invalidRequestParameter('sourceEntity'
);
} $mapping =
$this->mappingService->
getMappingFromTemplate($context,
$file,
$sourceEntity,
$delimiter,
$enclosure);
return new JsonResponse($mapping);
} /**
* @throws ProfileNotFoundException
*/
private function findProfile(Context
$context, string
$profileId): ImportExportProfileEntity
{ $profile =
$this->profileRepository
->
search(new Criteria([$profileId]),
$context)