X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=config%2Fconfig.yaml;h=1bb645b20215b9e5be2c9598d1e0bbf05c47072b;hb=0813fc5484129570466cbaff9c7d3700366f85d7;hp=3c4eb73c1a66088663c5fd68fb75b6c20a0b4d0b;hpb=51963d7f74d201615de629e0f6bfd4133e9e3a79;p=Project_proches_de_moi-server.git diff --git a/config/config.yaml b/config/config.yaml index 3c4eb73..1bb645b 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -5,26 +5,20 @@ 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: '^/', priorities: ['json'], fallback_format: 'json' } - param_fetcher_listener: force + - { path: '^/api', priorities: ['json'], fallback_format: 'json' } + body_listener: + enabled: true versioning: enabled: true resolvers: media_type: # Accept header enabled: true regex: '/(v|version)=(?P[0-9\.]+)/' - -sensio_framework_extra: - view: { annotations: false } - request: { converters: true }