Skip to content
Newer
Older
100644 97 lines (77 sloc) 3.2 KB
bccf52e @fabpot [Serializer] added CHANGELOG
fabpot authored
1 CHANGELOG
2 =========
3
c7c98d0 @dunglas [Serializer] Update changelog
dunglas authored
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`
c62ba24 @nicolas-grekas [Serializer] rename exception interface
nicolas-grekas authored
17 * [DEPRECATION] the `Exception` interface has been renamed to `ExceptionInterface`
e28cb58 @dunglas [Serializer] Introduce ObjectNormalizer
dunglas authored
18 * added `ObjectNormalizer` leveraging the `PropertyAccess` component to normalize
19 objects containing both properties and getters / setters / issers / hassers methods.
c7c98d0 @dunglas [Serializer] Update changelog
dunglas authored
20
5cdda82 @fabpot feature #9708 [Serializer] PropertyNormalizer: a new normalizer that …
fabpot authored
21 2.6.0
9a5def2 @mnapoli [Serializer] Added PropertyNormalizer, a new normalizer that maps an …
mnapoli authored
22 -----
23
24 * added a new serializer: `PropertyNormalizer`. Like `GetSetMethodNormalizer`,
25 this normalizer will map an object's properties to an array.
c7c98d0 @dunglas [Serializer] Update changelog
dunglas authored
26 * added circular references handling for `GetSetMethodNormalizer`
9a5def2 @mnapoli [Serializer] Added PropertyNormalizer, a new normalizer that maps an …
mnapoli authored
27
edf13b5 @tiraeth [Serializer] added support for is.* methods in GetSetMethodNormalizer
tiraeth authored
28 2.5.0
29 -----
30
31 * added support for `is.*` getters in `GetSetMethodNormalizer`
32
6004596 @benji07 [Serializer] Add the missing context support inside the XmlEncoder
benji07 authored
33 2.4.0
34 -----
35
36 * added `$context` support for XMLEncoder.
0febbe5 Json encoder classes now throws UnexpectedValueException as XML classes
Rodrigo Díez Villamuera authored
37 * [DEPRECATION] JsonEncode and JsonDecode where modified to throw
38 an exception if error found. No need for get*Error() functions
6004596 @benji07 [Serializer] Add the missing context support inside the XmlEncoder
benji07 authored
39
f8464aa @fabpot added missing entries in CHANGELOGs
fabpot authored
40 2.3.0
41 -----
42
43 * added `GetSetMethodNormalizer::setCamelizedAttributes` to allow calling
44 camel cased methods for underscored properties
45
5d831f3 @beberlei Fix JsonDecode to work on PHP 5.3, update the CHANGELOG.md
beberlei authored
46 2.2.0
47 -----
48
45fe843 @fabpot fixed markup
fabpot authored
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.
5d831f3 @beberlei Fix JsonDecode to work on PHP 5.3, update the CHANGELOG.md
beberlei authored
55
bccf52e @fabpot [Serializer] added CHANGELOG
fabpot authored
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 )
Something went wrong with that request. Please try again.