/**
* Retrieve annotations for an entry.
*
- * @param Entry $entry
- *
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @return JsonResponse
->getDoctrine()
->getRepository('WallabagAnnotationBundle:Annotation')
->findAnnotationsByPageId($entry->getId(), $this->getUser()->getId());
- $total = count($annotationRows);
+ $total = \count($annotationRows);
$annotations = ['total' => $total, 'rows' => $annotationRows];
$json = $this->get('jms_serializer')->serialize($annotations, 'json');
/**
* Creates a new annotation.
*
- * @param Request $request
- * @param Entry $entry
- *
* @return JsonResponse
*
* @see Wallabag\ApiBundle\Controller\WallabagRestController
*
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
- * @param Annotation $annotation
- * @param Request $request
- *
* @return JsonResponse
*/
public function putAnnotationAction(Annotation $annotation, Request $request)
*
* @ParamConverter("annotation", class="WallabagAnnotationBundle:Annotation")
*
- * @param Annotation $annotation
- *
* @return JsonResponse
*/
public function deleteAnnotationAction(Annotation $annotation)