mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
Added hint to auto register command handlers
This commit is contained in:
@@ -11,3 +11,15 @@ services:
|
||||
public: false
|
||||
|
||||
Prooph\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus'
|
||||
|
||||
# Autoregister your message handlers here
|
||||
# Make sure App\Messaging\* services are not overriden in `config/services.yaml`
|
||||
# Read more at https://github.com/prooph/service-bus-symfony-bundle/blob/master/doc/routing.md
|
||||
#
|
||||
# command_handlers:
|
||||
# resource: '../../src/Messaging/Command/*Handler.php'
|
||||
# namespace: App\Messaging\Command\
|
||||
# public: true
|
||||
# autowire: true
|
||||
# tags:
|
||||
# - { name: 'prooph_service_bus.default_command_bus.route_target', message_detection: true }
|
||||
|
||||
Reference in New Issue
Block a user