Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
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 }