productIncoId->value, $employeeMatricule->value, (string) $line->productIncoId->value, 'commande ferme', (string) $line->productOrderUnit->value, $line->productOrderUnit->toRegateCode(), '', $pickupDay->format('d/m/Y'), (string) $line->quantity, (string) $reference, ] ); } $csvContent = $this->csvGenerator->generate($this->header, $rows); $now = CarbonImmutable::now(); $fileName = sprintf( 'BTQ-%s-%s%s.csv', $reference, $now->format('Ymd_His'), \microtime(true) ); $this->dispatcher->dispatch( new RegateOrderCsvGenerated($csvContent, $fileName) ); } }