use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
$json = $this->get('serializer')->serialize($entries, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($entry, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
{
$json = $this->get('serializer')->serialize($this->getUser()->getTags(), 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
/**
$json = $this->get('serializer')->serialize($tag, 'json');
- return new JsonResponse($json, 200);
+ return new Response($json, 200, array('application/json'));
}
}