runExport example



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

            return;
        }

        $this->productExportFileHandler->writeProductExportContent(
            $exportResult->getContent(),
            
Home | Imprint | This part of the site doesn't use cookies.