-
Notifications
You must be signed in to change notification settings - Fork 708
/
config.yml
37 lines (34 loc) · 1.04 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
imports:
- { resource: ../config/default.yml }
- { resource: ../config/sensio_framework_extra.yml }
framework:
serializer:
enabled: true
fos_rest:
format_listener:
rules:
- { path: '^/', priorities: ['json', 'html'], fallback_format: json }
view:
view_response_listener: true
mime_types:
json:
- application/json
- application/vnd.foo.api+json;myversion=2.3
- application/vnd.foo.api+json # Fix for https://github.com/FriendsOfSymfony/FOSRestBundle/issues/1399
versioning:
enabled: true
default_version: 3.4.2
resolvers:
query:
parameter_name: query_version
custom_header:
header_name: Version-Header
media_type:
regex: '/(myversion)=(?P<version>[0-9\.]+)/'
guessing_order:
- custom_header
- media_type
- query
twig:
exception_controller: ~
strict_variables: '%kernel.debug%'