Skip to content

2.0 Release

Choose a tag to compare

@codeliner codeliner released this 08 Sep 20:23
· 65 commits to master since this release

Version 2.0 of the DoctrineEventStore adapter ships with support for prooph/event-store 5.0 and prooph/common 3.3. Furthermore, the adapter no longer takes a configuration array as constructor argument but instead requires all dependencies to be injected in the constructor. A new container-aware factory will help you set up the adapter.

Added

  • DoctrineEventStoreAdapterFactory that works with a ``Interop\Container` to help you set up the adapter

Changed

  • The adapter now requires all dependencies in the constructor instead of a configuration array - BC Break
  • The adapter now works with a Prooph\Common\Messaging\MessageFactory to translate persisted events back to event objects
  • The adapter now works with a Prooph\Common\Messaging\MessageConverter to translate event object into PHP arrays
  • The adapter now works with a Prooph\EventStore\Adapter\PayloadSerializer to serialize/unserialize event payload data

Removed

  • The table column event_class is no longer needed as the ``MessageFactory` is responsible of creating the correct event object based on the event name and event data
  • Inheritance support is removed by adding the final keyword to the adapter class