@@ -5,7 +5,7 @@ |
||
| 5 | 5 | class FormatNegotiator extends \Negotiation\FormatNegotiator |
| 6 | 6 | { |
| 7 | 7 | protected $formats = array( |
| 8 | - 'json' => array('application/json', 'application/x-json', 'application/json+oembed', 'text/javascript; charset=UTF-8'), |
|
| 9 | - 'xml' => array('text/xml', 'application/xml', 'application/x-xml', 'text/xml+oembed'), |
|
| 8 | + 'json' => array('application/json', 'application/x-json', 'application/json+oembed', 'text/javascript; charset=UTF-8'), |
|
| 9 | + 'xml' => array('text/xml', 'application/xml', 'application/x-xml', 'text/xml+oembed'), |
|
| 10 | 10 | ); |
| 11 | 11 | } |
@@ -54,11 +54,11 @@ |
||
| 54 | 54 | { |
| 55 | 55 | $nameConverter = new CamelCaseToSnakeCaseNameConverter(); |
| 56 | 56 | $serializer = new SymfonySerializer([ |
| 57 | - new PropertyNormalizer(null, $nameConverter), |
|
| 58 | - new GetSetMethodNormalizer(null, $nameConverter), |
|
| 57 | + new PropertyNormalizer(null, $nameConverter), |
|
| 58 | + new GetSetMethodNormalizer(null, $nameConverter), |
|
| 59 | 59 | ], [ |
| 60 | - new JsonEncoder(), |
|
| 61 | - new XmlEncoder('oembed'), |
|
| 60 | + new JsonEncoder(), |
|
| 61 | + new XmlEncoder('oembed'), |
|
| 62 | 62 | ]); |
| 63 | 63 | |
| 64 | 64 | return new self($serializer, $map); |