private readonly SalesChannelContextServiceInterface
$salesChannelContextService,
private readonly SalesChannelContextPersister
$contextPersister,
private readonly Connection
$connection,
private readonly int
$readBufferSize,
private readonly LanguageLocaleCodeProvider
$languageLocaleProvider ) { } public function __invoke(ProductExportPartialGeneration
$productExportPartialGeneration): void
{ $context =
$this->
getContext($productExportPartialGeneration);
$productExport =
$this->
fetchProductExport($productExportPartialGeneration,
$context);
if (!
$productExport) { return;
} $exportResult =
$this->
runExport($productExport,
$productExportPartialGeneration->
getOffset(),
$context);
$filePath =
$this->productExportFileHandler->
getFilePath($productExport, true
);
if ($exportResult === null
) { $this->
finalizeExport($productExport,
$filePath);