1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

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 …
This commit is contained in:
Jeremy Benoist 2016-10-15 16:46:42 +02:00
parent 6147736868
commit f1c3f68e90
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
4 changed files with 29 additions and 9 deletions

View file

@ -167,8 +167,6 @@ class WallabagRestController extends FOSRestController
* }
* )
*
* @Route(requirements={"_format"="epub|mobi|pdf|txt|csv"})
*
* @return Response
*/
public function getEntryExportAction(Entry $entry, Request $request)