Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert transaction manager to event store plugin #11

Merged
merged 2 commits into from
Nov 5, 2015

Conversation

codeliner
Copy link
Member

This PR enables the usage of the transaction manager as event store plugin instead of requiring the event store in the constructor of the transaction manager. Also the transaction manager factory is aligned so that the event store is no longer pulled from the container.
Main reason for the change was a circular dependency problem when the transaction manager is used together with the snapshot plugin.
For the record the old dependency chain compared with the new one:

CommandBus -> TransactionManager -> EventStore -> SnapshotPlugin <- (circular dep) CommandBus

new deps starting from event store as both plugins are event store plugins now:

CommandBus <- SnapshotPlugin <- EventStore -> TransactionManager -> CommandBus

@codeliner
Copy link
Member Author

ping @prolic

prolic added a commit that referenced this pull request Nov 5, 2015
Convert transaction manager to event store plugin
@prolic prolic merged commit d50b5d6 into prooph:develop Nov 5, 2015
@prolic prolic added this to the 2.0 Release milestone Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants