use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Wallabag\CoreBundle\Entity\Entry;
return $this->get('wallabag_core.helper.entries_export')
->setEntries($entry)
->updateTitle('entry')
+ ->updateAuthor('entry')
->exportAs($request->attributes->get('_format'));
}
}
if (null !== $data['isStarred']) {
- $entry->setStarred((bool) $data['isStarred']);
+ $entry->updateStar((bool) $data['isStarred']);
}
if (!empty($data['tags'])) {
}
if (null !== $data['isStarred']) {
- $entry->setStarred((bool) $data['isStarred']);
+ $entry->updateStar((bool) $data['isStarred']);
}
if (!empty($data['tags'])) {
$context = new SerializationContext();
$context->setSerializeNull(true);
- $json = $this->get('serializer')->serialize($data, 'json', $context);
+ $json = $this->get('jms_serializer')->serialize($data, 'json', $context);
return (new JsonResponse())->setJson($json);
}