$this->
createFile($productExport,
$context,
$behavior);
} } private function createFile( ProductExportEntity
$productExport,
SalesChannelContext
$context,
ExportBehavior
$exportBehavior ): void
{ $filePath =
$this->productExportFileHandler->
getFilePath($productExport);
if ($this->productExportFileHandler->
isValidFile( $filePath,
$exportBehavior,
$productExport )) { return;
} $result =
$this->productExportGenerator->
generate($productExport,
$exportBehavior);
if (!
$result instanceof ProductExportResult
) { $exportNotGeneratedException =
new ExportNotGeneratedException();
$this->
logException($context->
getContext(),
$exportNotGeneratedException);