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 /composer.json | |
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 'composer.json')
-rw-r--r-- | composer.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/composer.json b/composer.json index 79de337b..4f7ad291 100644 --- a/composer.json +++ b/composer.json | |||
@@ -54,8 +54,8 @@ | |||
54 | "sensio/framework-extra-bundle": "^3.0.2", | 54 | "sensio/framework-extra-bundle": "^3.0.2", |
55 | "incenteev/composer-parameter-handler": "^2.0", | 55 | "incenteev/composer-parameter-handler": "^2.0", |
56 | "nelmio/cors-bundle": "~1.4.0", | 56 | "nelmio/cors-bundle": "~1.4.0", |
57 | "friendsofsymfony/rest-bundle": "~1.4", | 57 | "friendsofsymfony/rest-bundle": "~2.1", |
58 | "jms/serializer-bundle": "~1.0", | 58 | "jms/serializer-bundle": "~1.1", |
59 | "nelmio/api-doc-bundle": "~2.7", | 59 | "nelmio/api-doc-bundle": "~2.7", |
60 | "mgargano/simplehtmldom": "~1.5", | 60 | "mgargano/simplehtmldom": "~1.5", |
61 | "tecnickcom/tcpdf": "~6.2", | 61 | "tecnickcom/tcpdf": "~6.2", |