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

Improve projection factories, use a simple callable definition #246

Merged

Conversation

sandrokeil
Copy link
Member

I've updated the Exception tests, because with this implementation, no wrong EventStore can be injected. Since the factories are callables, the event store is provided to the factory by the function itself.

Added lazy intializing of default factories. This has a better performance, instead of creating the factory by each call. The Factory is also stateless now.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 69575d1 on sandrokeil:feature/improve-projection-factories into 6f7b4f0 on prooph:develop.

@prolic prolic self-assigned this Jan 6, 2017
@prolic prolic added this to the 7.0 Release milestone Jan 6, 2017
@prolic prolic merged commit f11e025 into prooph:develop Jan 6, 2017
@prolic
Copy link
Member

prolic commented Jan 6, 2017

thx 👍

@sandrokeil sandrokeil deleted the feature/improve-projection-factories branch June 28, 2018 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants