Skip to content

2.0 Major Release

Compare
Choose a tag to compare
@codeliner codeliner released this 13 Jan 20:02
· 949 commits to master since this release

Important


Additionally to the changes described here you should also see notes for the v2.0.1 release. It is a Hotfix and includes more major changes. It is recommended to install v2.0.1.

Major Changes:


Most important change that breaks the API of v1.x was made in the AggregateRepository

The fourth parameter of the constructor (the AggregateType) is no longer optional. Therefor you don't need to provide an AggregateType when requesting a aggregate root with AggregateRepository::getAggregateRoot

Additionally the way to instantiate an AggregateType has changed. The constuctor is now private and you have to use one of the available static factory methods instead.

Minor Changes:


All assertion chains are replaced with static assertion calls. This makes the code a bit less readable but it is a small performance gain