aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-10-15 16:46:42 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-10-15 16:46:42 +0200
commitf1c3f68e909e51f071f3f4b2ef9430163bbfd7a4 (patch)
tree20a6ebbd686d76d1907dc17af8eeeb963d7a27e9 /src/Wallabag/ApiBundle/Controller
parent61477368687e048f3001336327923f5c87fa2592 (diff)
downloadwallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.tar.gz
wallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.tar.zst
wallabag-f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4.zip
ApiDoc & Route annotation were conflicted
The generated error was “Unable to guess how to get a Doctrine instance from the request information.”. I haven’t checked deeper in Doctrine (I know it was coming from the DoctrineParamConverter). Anyway, I check for FosRest possiblity to add extra format without allowing them for every route (like it was done in the first place). I finally found a way but it then seems all request goes to the FormatListener of FosRest so I needed to add a custom rules to match all request to be sure we don’t get a 406 error from FosRest. Should be ok now …
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index fa573988..96f75807 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -167,8 +167,6 @@ class WallabagRestController extends FOSRestController
167 * } 167 * }
168 * ) 168 * )
169 * 169 *
170 * @Route(requirements={"_format"="epub|mobi|pdf|txt|csv"})
171 *
172 * @return Response 170 * @return Response
173 */ 171 */
174 public function getEntryExportAction(Entry $entry, Request $request) 172 public function getEntryExportAction(Entry $entry, Request $request)