AbstractNormalizer
to factorise code and ease normalizers developmentPropertyNormalizer
object_to_populate
in AbstractNormalizer
to reuse existing objects in the deserialization processNameConverterInterface
and CamelCaseToSnakeCaseNameConverter
GetSetMethodNormalizer::setCamelizedAttributes()
and
PropertyNormalizer::setCamelizedAttributes()
are replaced by
CamelCaseToSnakeCaseNameConverter
Exception
interface has been renamed to ExceptionInterface
ObjectNormalizer
leveraging the PropertyAccess
component to normalize
objects containing both properties and getters / setters / issers / hassers methods.PropertyNormalizer
. Like GetSetMethodNormalizer
,
this normalizer will map an object's properties to an array.GetSetMethodNormalizer
is.*
getters in GetSetMethodNormalizer
$context
support for XMLEncoder.GetSetMethodNormalizer::setCamelizedAttributes
to allow calling
camel cased methods for underscored properties$context
array parameter.xml_root_name
parameter in the context option to the XmlEncoder
.json_encode
and json_decode
can be passed through
the context options of JsonEncode
and JsonDecode
encoder/decoders.GetSetMethodNormalizer
's key names from all lowercased
to camelCased (e.g. mypropertyvalue
to myPropertyValue
)[BC BREAK] convert the item
XML tag to an array
<?xml version="1.0"?>
<response>
<item><title><![CDATA[title1]]></title></item><item><title><![CDATA[title2]]></title></item>
</response>
Before:
Array()
After:
Array(
[item] => Array(
[0] => Array(
[title] => title1
)
[1] => Array(
[title] => title2
)
)
)