File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
<parameter >application/json</parameter >
15
15
<parameter >text/json</parameter >
16
16
<parameter >application/x-json</parameter >
17
- <parameter >application/problem+json</parameter >
18
17
</parameter >
19
18
<parameter key =" charset" >true</parameter >
20
19
</parameter >
Original file line number Diff line number Diff line change 21
21
<argument >json</argument >
22
22
23
23
<tag name =" chimera.content_negotiation" format =" application/json" />
24
+ <tag name =" chimera.content_negotiation" format =" application/problem+json" />
24
25
</service >
25
26
26
27
<service id =" chimera.xml_formatter" class =" Lcobucci\ContentNegotiation\Formatter\JmsSerializer" >
27
28
<argument type =" service" id =" JMS\Serializer\SerializerInterface" />
28
29
<argument >xml</argument >
29
30
30
31
<tag name =" chimera.content_negotiation" format =" application/xml" />
32
+ <tag name =" chimera.content_negotiation" format =" application/problem+xml" />
31
33
</service >
32
34
</services >
33
35
</container >
Original file line number Diff line number Diff line change @@ -365,7 +365,8 @@ private function registerApplication(
365
365
}
366
366
367
367
if ($ formatters === []) {
368
- $ formatters ['application/json ' ] = new Reference (Json::class);
368
+ $ formatters ['application/json ' ] = new Reference (Json::class);
369
+ $ formatters ['application/problem+json ' ] = new Reference (Json::class);
369
370
}
370
371
371
372
$ applicationAllowedFormats = $ this ->applicationName . '.allowed_formats ' ;
You can’t perform that action at this time.
0 commit comments