Aggregate Query Handlers
DDD PHP
Last updated
Was this helpful?
DDD PHP
Last updated
Was this helpful?
Read sections first to get more details about Aggregates.
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.