This document gives an overview of what's changed between versions. Backwards incompatible changes are described as wel as the most important new features.
No breaking changes, just support for the new production certificates from Apple.
Backwards incompatible changes:
- The
Message
-object is now read-only, all setters are removed - The
MessageBuilder
class is introduced to createMessage
-objects - The
MessageFactory
class is removed in favour of theMessageBuilder
-class - The
Message::validateLength
method is gone, as the constructor now validates the length on creation
New features:
Message
is now serializable for easy storageMessage::__toString
is implemented and dumps the contents of the message for debugging
Backwards incompatible changes:
- If the certificate is invalid the class now throws an
InvalidCertificateException
instead ofInvalidArgumentException
New features:
Certificate::isValidated
is introduced and indicates if the certificate was validated on construction
Backwards incompatible changes:
MessageEnvelope::STATUS_PAYLOADTOOLONG
status is removed as constructing messages immediatly throws an exception