Once you create a Command, you need to create a Command Handler to handle that command. Command Handlers do NOT return any results.
Getting the Command to the Command Handler
CommandMessageBus reqires the
You can use Messenger to process commands. 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 commands.
CommandMessageBus is easy as well.