Skip to content

Commit

Permalink
Feat: Adjust csv return.
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldbach07 committed Oct 29, 2021
1 parent 8a25675 commit d4f2835
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/SymfonyEntityExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ public function export(
$entities->next();
}

return $$value;


if ($extension == 'csv') {
$writer = new Csv($spreadsheet);
$writer->setUseBOM(true);
Expand All @@ -475,7 +472,7 @@ public function export(

$writer->save('php://output');
});
dd($valuex);

$response->setStatusCode(200);
$response->headers->set('Content-Type', self::EXPORTER_HEADER[$extension]);
$response->headers->set('Cache-Control', 'no-cache, no-store, must-revalidate');
Expand Down

0 comments on commit d4f2835

Please sign in to comment.