Fix bug in style changes for the Use cases on the live site.
[yaffs-website] / vendor / symfony / serializer / CHANGELOG.md
1 CHANGELOG
2 =========
3
4 2.7.0
5 -----
6
7  * added support for serialization and deserialization groups including
8    annotations, XML and YAML mapping.
9  * added `AbstractNormalizer` to factorise code and ease normalizers development
10  * added circular references handling for `PropertyNormalizer`
11  * added support for a context key called `object_to_populate` in `AbstractNormalizer`
12    to reuse existing objects in the deserialization process
13  * added `NameConverterInterface` and `CamelCaseToSnakeCaseNameConverter`
14  * [DEPRECATION] `GetSetMethodNormalizer::setCamelizedAttributes()` and
15    `PropertyNormalizer::setCamelizedAttributes()` are replaced by
16    `CamelCaseToSnakeCaseNameConverter`
17  * [DEPRECATION] the `Exception` interface has been renamed to `ExceptionInterface`
18  * added `ObjectNormalizer` leveraging the `PropertyAccess` component to normalize
19    objects containing both properties and getters / setters / issers / hassers methods.
20
21 2.6.0
22 -----
23
24  * added a new serializer: `PropertyNormalizer`. Like `GetSetMethodNormalizer`,
25    this normalizer will map an object's properties to an array.
26  * added circular references handling for `GetSetMethodNormalizer`
27
28 2.5.0
29 -----
30
31  * added support for `is.*` getters in `GetSetMethodNormalizer`
32
33 2.4.0
34 -----
35
36  * added `$context` support for XMLEncoder.
37  * [DEPRECATION] JsonEncode and JsonDecode where modified to throw
38    an exception if error found. No need for get*Error() functions
39
40 2.3.0
41 -----
42
43  * added `GetSetMethodNormalizer::setCamelizedAttributes` to allow calling
44    camel cased methods for underscored properties
45
46 2.2.0
47 -----
48
49  * [BC BREAK] All Serializer, Normalizer and Encoder interfaces have been
50    modified to include an optional `$context` array parameter.
51  * The XML Root name can now be configured with the `xml_root_name`
52    parameter in the context option to the `XmlEncoder`.
53  * Options to `json_encode` and `json_decode` can be passed through
54    the context options of `JsonEncode` and `JsonDecode` encoder/decoders.
55
56 2.1.0
57 -----
58
59  * added DecoderInterface::supportsDecoding(),
60    EncoderInterface::supportsEncoding()
61  * removed NormalizableInterface::denormalize(),
62    NormalizerInterface::denormalize(),
63    NormalizerInterface::supportsDenormalization()
64  * removed normalize() denormalize() encode() decode() supportsSerialization()
65    supportsDeserialization() supportsEncoding() supportsDecoding()
66    getEncoder() from SerializerInterface
67  * Serializer now implements NormalizerInterface, DenormalizerInterface,
68    EncoderInterface, DecoderInterface in addition to SerializerInterface
69  * added DenormalizableInterface and DenormalizerInterface
70  * [BC BREAK] changed `GetSetMethodNormalizer`'s key names from all lowercased
71    to camelCased (e.g. `mypropertyvalue` to `myPropertyValue`)
72  * [BC BREAK] convert the `item` XML tag to an array
73
74     ``` xml
75     <?xml version="1.0"?>
76     <response>
77         <item><title><![CDATA[title1]]></title></item><item><title><![CDATA[title2]]></title></item>
78     </response>
79     ```
80
81     Before:
82
83         Array()
84
85     After:
86
87         Array(
88             [item] => Array(
89                 [0] => Array(
90                     [title] => title1
91                 )
92                 [1] => Array(
93                     [title] => title2
94                 )
95             )
96         )