The bundle provides several tags to use in your service configuration.
Register command handler using broadway.command_handler service tag:
# services.yaml
TestCommandHandler:
tags: [broadway.command_handler]
Register listeners (such as projectors) that respond and act on domain events:
tags: [broadway.domain.event_listener]
For example an event listener that collects successfully executed commands:
tags:
- { name: broadway.event_listener, event: broadway.command_handling.command_success, method: onCommandHandlingSuccess }
How can I help you explore Laravel packages today?