Controller/ReportingController.php
/**
     * Coverage Action
     *
     * Action to return a report of all tables and parameters held, and what the GDPR information is.
     *
     * @Route("/coverage", name="reporting_coverage")
     * @Method("GET")
     */
Coverage Action
Action to return a report of all tables and parameters held, and what the GDPR information is.


Coverage Action Action to return a report of all tables and parameters held and what the GDPR information is .
public function coverageAction(ReportService $reportSerivce){
        $response = $reportSerivce->getAllClassParameters();
        $date = new \DateTime('now');
        $dispositionHeader = $response->headers->makeDisposition(
            ResponseHeaderBag::DISPOSITION_ATTACHMENT,
            'GDPR Coverage Report-'.$date->format('d M Y') . '.xls'
        );
        $response->headers->set('Content-Type', 'text/vnd.ms-excel; charset=utf-8');
        $response->headers->set('Pragma', 'public');
        $response->headers->set('Cache-Control', 'maxage=1');
        $response->headers->set('Content-Disposition', $dispositionHeader);
        return $response;
    }
public function coverageAction ( ReportService $ reportSerivce ) { $ response = $ reportSerivce -> getAllClassParameters ( ) ; $ date = new \ DateTime ( 'now' ) ; $ dispositionHeader = $ response -> headers -> makeDisposition ( ResponseHeaderBag :: DISPOSITION_ATTACHMENT , 'GDPR Coverage Report-' . $ date -> format ( 'd M Y' ) . '.xls' ) ; $ response -> headers -> set ( 'Content-Type' , 'text/vnd.ms-excel; charset=utf-8' ) ; $ response -> headers -> set ( 'Pragma' , 'public' ) ; $ response -> headers -> set ( 'Cache-Control' , 'maxage=1' ) ; $ response -> headers -> set ( 'Content-Disposition' , $ dispositionHeader ) ; return $ response ; }
Coverage Action
 Action to return a report of all tables and parameters held, and what the GDPR information is.
Coverage Action Action to return a report of all tables and parameters held and what the GDPR information is .