Aggregate Query Handlers
DDD PHP
Read Aggregate Introduction sections first to get more details about Aggregates.
Aggregate Query Action
Aggregate actions are defined using public method (non-static). Ecotone will ensure loading in order to execute the query method.
And then we call it from Query Bus
:
You may of course use of Query class or metadata in case of need, which will be passed to your aggregate's method.
Last updated