Skip to content

Instantly share code, notes, and snippets.

@Andrej1A
Andrej1A / CsvResponse.php
Created November 14, 2015 13:02 — forked from mathewbyrne/CsvResponse.php
A small Symfony 2 class for returning a response as a CSV file. Based on the Symfony JsonResponse class.
<?php
namespace Jb\AdminBundle\Http;
use Symfony\Component\HttpFoundation\Response;
class CsvResponse extends Response
{
protected $data;