Added tags counter in sidebar (material theme)

This commit is contained in:
Nicolas Lœuillet
2016-09-04 20:53:28 +02:00
parent c3b53188d7
commit 429d86f388
8 changed files with 62 additions and 38 deletions

View File

@ -322,7 +322,9 @@ class WallabagRestController extends FOSRestController
$tags = $this->getDoctrine()
->getRepository('WallabagCoreBundle:Tag')
->findAllTags($this->getUser()->getId());
->findAllTags($this->getUser()->getId())
->getQuery()
->getResult();
$json = $this->get('serializer')->serialize($tags, 'json');