Adds annotation support to prooph
This package adds support for annotations to Prooph.
This library will receive support until December 31, 2019 and will then be deprecated.
For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html
- Build aggregates and event listeners, almost without coupling to internal Prooph logic.
- Use any POPO (Plain Old PHP Object) as an aggregate.
Note: this package is considered experimental!
See the example in example/example.php.
This package introduces the following annotations:
Should be put on a property to indicate where the aggregate identifier can be found.
Should be be put on a property or method in a command (class), to indicate where the identifier of the target aggregate can be found.
This package was partly inspired by Axon Framework 3.0.