From 26ec16d08b91802dafcc5f5a47e87e1822d79bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gildas=20Qu=C3=A9m=C3=A9ner?= Date: Tue, 20 Mar 2018 18:55:29 +0100 Subject: [PATCH] Autowired command handlers --- .../0.6/config/packages/prooph_service_bus.yaml | 3 +++ 1 file changed, 3 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 35ca6918..cd80d926 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 @@ -3,6 +3,9 @@ prooph_service_bus: app_command_bus: ~ services: + _defaults: + autowire: true + Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.app_command_bus' # Make sure App\Messaging\* services are not overriden in `config/services.yaml`