From e167532f35f97aab2f3a859e2b1bf2cd9eba6a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gildas=20Qu=C3=A9m=C3=A9ner?= Date: Fri, 23 Mar 2018 11:50:01 +0100 Subject: [PATCH] Added hint to auto register command handlers --- .../0.6/config/packages/prooph_service_bus.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml b/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml index faaa0df4..c3475381 100644 --- a/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml +++ b/prooph/service-bus-symfony-bundle/0.6/config/packages/prooph_service_bus.yaml @@ -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 }