diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-15 16:46:42 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-15 16:46:42 +0200 |
commit | f1c3f68e909e51f071f3f4b2ef9430163bbfd7a4 (patch) | |
tree | 20a6ebbd686d76d1907dc17af8eeeb963d7a27e9 /src/Wallabag/ApiBundle/DependencyInjection/WallabagApiExtension.php | |
parent | 61477368687e048f3001336327923f5c87fa2592 (diff) | |
download | wallabag-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/DependencyInjection/WallabagApiExtension.php')
0 files changed, 0 insertions, 0 deletions