diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-03 18:01:25 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-03 18:01:25 +0100 |
commit | 001cc7168aa1a7e9b8290b9c29566c586ac8b511 (patch) | |
tree | d1818e81c9ebcfeeecb2acc90cf758f3646865d8 /src/Wallabag/ApiBundle | |
parent | 864c1dd23a4aa9e5f412302694d9303070dca6dc (diff) | |
download | wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.gz wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.zst wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.zip |
Cleanup
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/TagRestController.php | 16 | ||||
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 3 |
2 files changed, 1 insertions, 18 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/TagRestController.php b/src/Wallabag/ApiBundle/Controller/TagRestController.php index 4e7ddc66..bc6d4e64 100644 --- a/src/Wallabag/ApiBundle/Controller/TagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/TagRestController.php | |||
@@ -132,22 +132,6 @@ class TagRestController extends WallabagRestController | |||
132 | } | 132 | } |
133 | 133 | ||
134 | /** | 134 | /** |
135 | * Retrieve version number. | ||
136 | * | ||
137 | * @ApiDoc() | ||
138 | * | ||
139 | * @return JsonResponse | ||
140 | */ | ||
141 | public function getVersionAction() | ||
142 | { | ||
143 | $version = $this->container->getParameter('wallabag_core.version'); | ||
144 | |||
145 | $json = $this->get('serializer')->serialize($version, 'json'); | ||
146 | |||
147 | return (new JsonResponse())->setJson($json); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * Remove orphan tag in case no entries are associated to it. | 135 | * Remove orphan tag in case no entries are associated to it. |
152 | * | 136 | * |
153 | * @param Tag|array $tags | 137 | * @param Tag|array $tags |
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 1ff593f5..b1e08ca4 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -3,10 +3,9 @@ | |||
3 | namespace Wallabag\ApiBundle\Controller; | 3 | namespace Wallabag\ApiBundle\Controller; |
4 | 4 | ||
5 | use FOS\RestBundle\Controller\FOSRestController; | 5 | use FOS\RestBundle\Controller\FOSRestController; |
6 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; | ||
7 | use Wallabag\CoreBundle\Entity\Entry; | ||
8 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; | 6 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
9 | use Symfony\Component\HttpFoundation\JsonResponse; | 7 | use Symfony\Component\HttpFoundation\JsonResponse; |
8 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; | ||
10 | 9 | ||
11 | class WallabagRestController extends FOSRestController | 10 | class WallabagRestController extends FOSRestController |
12 | { | 11 | { |