]> git.immae.eu Git - github/wallabag/wallabag.git/commit - composer.json
ApiDoc & Route annotation were conflicted
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 15 Oct 2016 14:46:42 +0000 (16:46 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 15 Oct 2016 14:46:42 +0000 (16:46 +0200)
commitf1c3f68e909e51f071f3f4b2ef9430163bbfd7a4
tree20a6ebbd686d76d1907dc17af8eeeb963d7a27e9
parent61477368687e048f3001336327923f5c87fa2592
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 …
app/config/config.yml
app/config/routing_rest.yml
composer.json
src/Wallabag/ApiBundle/Controller/WallabagRestController.php