Skip to content

Commit cfbf6e1

Browse files
authored
fix(doc): fix doc exporter utilisation (#8)
1 parent 93f4508 commit cfbf6e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function exportData(ExporterInterface $exporter): Response
7070
{
7171
$query = $this->productRepository->yourQueryMethod();
7272

73-
return $exporter->exportCsv($query, ['getName', 'getDescription', ...], 'fileName', ExporterInterface::XLSX); // or 'csv'
73+
return $exporter->export($query, ['getName', 'getDescription', ...], 'fileName', ExporterInterface::XLSX); // or 'csv'
7474
}
7575
```
7676

0 commit comments

Comments
 (0)