From 9e9d0694201d800a30d019574d0c111def1daf6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gildas=20Qu=C3=A9m=C3=A9ner?= Date: Mon, 19 Mar 2018 15:02:28 +0100 Subject: [PATCH] Revert "Auto-register command handlers" This reverts commit 41dca242971f92a718db17199fa4ff8048070056. --- .../0.6/config/packages/prooph_service_bus.yaml | 3 +++ .../service-bus-symfony-bundle/0.6/config/services.yaml | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 prooph/service-bus-symfony-bundle/0.6/config/services.yaml 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 1f7158ae..35d75750 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 @@ -1,3 +1,6 @@ +services: + Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus' + prooph_service_bus: command_buses: default_command_bus: ~ diff --git a/prooph/service-bus-symfony-bundle/0.6/config/services.yaml b/prooph/service-bus-symfony-bundle/0.6/config/services.yaml deleted file mode 100644 index df935807..00000000 --- a/prooph/service-bus-symfony-bundle/0.6/config/services.yaml +++ /dev/null @@ -1,8 +0,0 @@ -services: - Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus' - - command_handlers: - namespace: App\Messaging\Command\ - public: true - resource: '../src/Messaging/Command/*Handler.php' - tags: [{ name: 'prooph_service_bus.default_command_bus.route_target', message_detection: true }]