public function exportCsvAction(Exercise $exercise)
    {
        $this->assertHasPermission('MANAGE_PAPERS', $exercise);

        return new StreamedResponse(function () use ($exercise) {
            $this->exerciseManager->exportPapersToCsv($exercise);
        }, 200, [
            'Content-Type' => 'application/force-download',
            'Content-Disposition' => 'attachment; filename="export.csv"',
        ]);
    }
public function exportCsvAction(Exercise $exercise)
    {
        $this->assertHasPermission('MANAGE_PAPERS', $exercise);

        return new StreamedResponse(function () use ($exercise) {
            $this->exerciseManager->exportPapersToCsv($exercise);
        }, 200, [
            'Content-Type' => 'application/force-download',
            'Content-Disposition' => 'attachment; filename="export.csv"',
        ]);
    }
public function exportCsvAction ( Exercise $ exercise ) { $ this -> assertHasPermission ( 'MANAGE_PAPERS' , $ exercise ) ; return new StreamedResponse ( function ( ) use ( $ exercise ) { $ this -> exerciseManager -> exportPapersToCsv ( $ exercise ) ; } , 200 , [ 'Content-Type' => 'application/force-download' , 'Content-Disposition' => 'attachment; filename="export.csv"' , ] ) ; }
Exports papers into a CSV file.

@EXT\Route("/export/csv", name="exercise_papers_export")
@EXT\Method("GET")

@param Exercise $exercise

@return StreamedResponse
Exports papers into a CSV file .