Query Handlers will handle a Query and return a result.
Getting the Query to the Query Handler
QueryMessageBus reqires the
You can use Messenger to process queries. If you're using Messenger as a
standalone component, inject your
MessageBus object into the
If using the Symfony Framework, it's even easier. You'll just need to update
You will need to configure Messenger to have multiple buses.
is the name of the bus that was configured to process queries.
QueryMessageBus is easy as well.