function csv(Request $request, Application $app)
 {
     $ourRequest = new \Request($request);
     $csv = new EventListCSVBuilder($app['currentSite'], $app['currentTimeZone']);
     $csv->setIncludeEventMedias($ourRequest->getGetOrPostBoolean("includeMedias", false));
     $csv->build();
     return $csv->getResponse();
 }
 function csv($slug, Request $request, Application $app)
 {
     $ourRequest = new \Request($request);
     if (!$this->build($slug, $request, $app)) {
         $app->abort(404, "curatedlist does not exist.");
     }
     $csv = new EventListCSVBuilder($app['currentSite'], $app['currentTimeZone']);
     $csv->getEventRepositoryBuilder()->setCuratedList($this->parameters['curatedlist']);
     $csv->setIncludeEventMedias($ourRequest->getGetOrPostBoolean("includeMedias", false));
     $csv->build();
     return $csv->getResponse();
 }
 function csv($slug, Request $request, Application $app)
 {
     if (!$this->build($slug, $request, $app)) {
         $app->abort(404, "Group does not exist.");
     }
     $csv = new EventListCSVBuilder($app['currentSite'], $app['currentTimeZone']);
     $csv->setTitle($this->parameters['group']->getTitle());
     $csv->getEventRepositoryBuilder()->setGroup($this->parameters['group']);
     $csv->build();
     return $csv->getResponse();
 }