see: https://github.com/mrook/annotations/blob/master/src/AnnotatedCommandHandler.php#L69 As you can see here https://github.com/prooph/event-sourcing/blob/develop/src/AggregateRoot.php#L46 the constructor is already protected. So an aggregate root will only be created by static methods, not by the constructor.
see: https://github.com/mrook/annotations/blob/master/src/AnnotatedCommandHandler.php#L69
As you can see here https://github.com/prooph/event-sourcing/blob/develop/src/AggregateRoot.php#L46 the constructor is already protected. So an aggregate root will only be created by static methods, not by the constructor.