prooph/snapshot-doctrine-adapter

Snapshot Doctrine Adapter for ProophEventStore

v1.1.0 2016-05-08 18:25 UTC

This package is auto-updated.

Last update: 2024-10-17 01:31:03 UTC


README

Doctrine Adapter for the Snapshot Store

#CAUTION: Support for the package will end at 31 December 2017. Use https://github.com/prooph/pdo-snapshot-store instead!

Build Status Coverage Status Gitter

Set Up

How to use the adapter is explained in the prooph/event-store docs. To help you with setting up the snapshot tables we ship a SnapshotStoreSchema helper with the package. You can use it in a doctrine migrations script or manually by passing in a Doctrine\DBAL\Schema\Schema and executing the generated SQL afterwards.

Interop Factory

Some general notes about how to use interop factories shipped with prooph components can be found in the event store docs. Use the doctrine snapshot adapter factory to set up the adapter. If your IoC container supports callable factories you can register the factory under a service id of your choice and configure this service id as $config['prooph']['snapshot_store']['adpater']['type'] = <adapter_service_id>.

Support

Contribute

Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.

Dependencies

Please refer to the project composer.json for the list of dependencies.

License

Released under the New BSD License.