diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-01 13:51:35 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-02-01 13:51:35 +0100 |
commit | e43d27f8450dcdf79850e935b762ac390a19dd63 (patch) | |
tree | dcdf7ba59559665421181e895137ddb04fc985fc /src/Wallabag/ApiBundle | |
parent | 74d8afa5fa38af083bbacc63d76b904c01808f14 (diff) | |
parent | 5f8a785719c1dfeacc0bccc0781a94bd396b80ff (diff) | |
download | wallabag-e43d27f8450dcdf79850e935b762ac390a19dd63.tar.gz wallabag-e43d27f8450dcdf79850e935b762ac390a19dd63.tar.zst wallabag-e43d27f8450dcdf79850e935b762ac390a19dd63.zip |
Merge pull request #1605 from wallabag/v2-fix-sensiolabsinsight
[#1604] First draft to fix SensioLabsInsight report
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 2 | ||||
-rw-r--r-- | src/Wallabag/ApiBundle/DependencyInjection/Configuration.php | 4 |
2 files changed, 1 insertions, 5 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; | |||
9 | use Symfony\Component\HttpFoundation\Request; | 9 | use Symfony\Component\HttpFoundation\Request; |
10 | use Symfony\Component\HttpFoundation\Response; | 10 | use Symfony\Component\HttpFoundation\Response; |
11 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; | 11 | use Symfony\Component\Routing\Generator\UrlGeneratorInterface; |
12 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; | ||
12 | use Wallabag\CoreBundle\Entity\Entry; | 13 | use Wallabag\CoreBundle\Entity\Entry; |
13 | use Wallabag\CoreBundle\Entity\Tag; | 14 | use 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') |
diff --git a/src/Wallabag/ApiBundle/DependencyInjection/Configuration.php b/src/Wallabag/ApiBundle/DependencyInjection/Configuration.php index cec45412..f70a5835 100644 --- a/src/Wallabag/ApiBundle/DependencyInjection/Configuration.php +++ b/src/Wallabag/ApiBundle/DependencyInjection/Configuration.php | |||
@@ -20,10 +20,6 @@ class Configuration implements ConfigurationInterface | |||
20 | $treeBuilder = new TreeBuilder(); | 20 | $treeBuilder = new TreeBuilder(); |
21 | $rootNode = $treeBuilder->root('wallabag_api'); | 21 | $rootNode = $treeBuilder->root('wallabag_api'); |
22 | 22 | ||
23 | // Here you should define the parameters that are allowed to | ||
24 | // configure your bundle. See the documentation linked above for | ||
25 | // more information on that topic. | ||
26 | |||
27 | return $treeBuilder; | 23 | return $treeBuilder; |
28 | } | 24 | } |
29 | } | 25 | } |