finalizeExport example

$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);

            return;
        }

        $this->productExportFileHandler->writeProductExportContent(
            $exportResult->getContent(),
            $filePath,
            $productExportPartialGeneration->getOffset() > 0
        );

        if ($productExportPartialGeneration->getOffset() + $this->readBufferSize < $exportResult->getTotal()) {
            
Home | Imprint | This part of the site doesn't use cookies.