aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-20 16:24:48 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-22 21:12:11 +0100
commitb0b893eafd3c1d66b8681a4a6420603af42ec084 (patch)
treec81cd3621747569d16e99dc47c726af2e668601a /src/Wallabag/ApiBundle/Controller/WallabagRestController.php
parent96fcb60c335a8985d0ebb8acec3af7c310edb70c (diff)
downloadwallabag-b0b893eafd3c1d66b8681a4a6420603af42ec084.tar.gz
wallabag-b0b893eafd3c1d66b8681a4a6420603af42ec084.tar.zst
wallabag-b0b893eafd3c1d66b8681a4a6420603af42ec084.zip
[#1604] First draft to fix SensioLabsInsight report
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index d9035cac..84bc14a9 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -9,6 +9,7 @@ use Nelmio\ApiDocBundle\Annotation\ApiDoc;
9use Symfony\Component\HttpFoundation\Request; 9use Symfony\Component\HttpFoundation\Request;
10use Symfony\Component\HttpFoundation\Response; 10use Symfony\Component\HttpFoundation\Response;
11use Symfony\Component\Routing\Generator\UrlGeneratorInterface; 11use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
12use Symfony\Component\Security\Core\Exception\AccessDeniedException;
12use Wallabag\CoreBundle\Entity\Entry; 13use Wallabag\CoreBundle\Entity\Entry;
13use Wallabag\CoreBundle\Entity\Tag; 14use Wallabag\CoreBundle\Entity\Tag;
14 15
@@ -73,7 +74,6 @@ class WallabagRestController extends FOSRestController
73 $order = $request->query->get('order', 'desc'); 74 $order = $request->query->get('order', 'desc');
74 $page = (int) $request->query->get('page', 1); 75 $page = (int) $request->query->get('page', 1);
75 $perPage = (int) $request->query->get('perPage', 30); 76 $perPage = (int) $request->query->get('perPage', 30);
76 $tags = $request->query->get('tags', []);
77 77
78 $pager = $this->getDoctrine() 78 $pager = $this->getDoctrine()
79 ->getRepository('WallabagCoreBundle:Entry') 79 ->getRepository('WallabagCoreBundle:Entry')