Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
- Now requires PHP 5.5.
finallyto always roll back the context stack when serializing.
- #94: Fixed an infinite loop condition when reading some invalid XML
contextStackin the Reader object is now correctly rolled back in
error conditions (@staabm).
- repeatingElements deserializer now still parses if a bare element name
without clark notation was given.
$elementMapin the Reader now also supports bare element names.
Service::expect()can now also work with bare element names.
- Any array thrown into the serializer with numeric keys is now simply
traversed and each individual item is serialized. This fixes an issue
related to serializing value objects with array children.
- When serializing value objects, properties that have a null value or an
empty array are now skipped. We believe this to be the saner default, but
does constitute a BC break for those depending on this.
- Serializing array properties in value objects was broken.
Serviceclass adds a new
mapValueObjectmethod which provides basic
capabilities to map between ValueObjects and XML.
- #61: You can now specify serializers for specific classes, allowing you
separate the object you want to serialize from the serializer. This uses the
$classMapproperty which is defined on both the
- It's now possible to pass an array of possible root elements to
- Moved some parsing logic to
so people with more advanced use-cases can implement their own logic there.
- #63: When serializing elements using arrays, the
valuekey in the array is
- #62: Added a
keyValuedeserializer function. This can be used instead of
Element\KeyValueclass and is a lot more flexible. (@staabm)
- Also added an
enumdeserializer function to replace
- Using an empty string for a namespace prefix now has the same effect as