0.4.0
Pre-release-
The serializer implementation has been separated from its API definition. This package now no longer ships with an implementation.
The Symfony Serializer component integration has been moved to the separate php-xapi/symfony-serializer package.
A default implementation of the
SerializerRegistryInterfaceis still part of thephp-xapi/serializerpackage though.This package ships with the following interfaces that must be implemented by packages that want to provide the xAPI serialization functionality:
ActorSerializerInterfaceDocumentDataSerializerInterfaceStatementResultSerializerInterfaceStatementSerializerInterfaceStatementFactoryInterface
Implementors of the API provided by this package are advised to add the
php-xapi/serializer-implementationpackage to theprovidesection of theircomposer.jsonfile.The
Testssubnamespace of this package contains a set of base abstract PHPUnit test classes integrators can use to make sure that their implementation adheres to the API specified by thephp-xapi/serializerpackage. -
Added a
SerializerFactoryInterfacethat abstracts the creation of serializer instances. -
The
SerializerRegistryclass is now final. If you need custom behavior inside the serializer registry, create your own implementation of theSerializerRegistryInterface.