Simplify the specific configuration to the bare minimum.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 21:24:45 +0000 (23:24 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 21:24:45 +0000 (23:24 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
config/config.yaml

index d0d7baf956579f6dbe742623c8cf704f39a1cb0c..6aab19c0dd4af0367c670bf1dc146621e69b05fe 100644 (file)
@@ -5,27 +5,18 @@ framework:
         enabled: true
 
 fos_rest:
-    body_converter:
-        enabled: true
+    routing_loader:
+        include_format: false
     view:
-        formats: { json: true, xml: false, rss: false }
         view_response_listener: true
         mime_types:
             json: ['application/json', 'application/json;version=1.0', 'application/json;version=2.0']
-    serializer:
-        serialize_null: true
     format_listener:
         rules:
             - { path: '^/api', priorities: ['json'], fallback_format: 'json' }
-    param_fetcher_listener: force
-    routing_loader:
-        include_format: false
     versioning:
         enabled: true
         resolvers:
             media_type: # Accept header
                 enabled: true
                 regex: '/(v|version)=(?P<version>[0-9\.]+)/'
-
-sensio_framework_extra:
-    request: { converters: true }