Defined prooph service bus bundle default config

This commit is contained in:
Gildas Quéméner
2018-03-20 18:50:49 +01:00
parent 2fde35c791
commit 17a7249d77
3 changed files with 14 additions and 6 deletions
@@ -1,6 +0,0 @@
services:
Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.app_command_bus'
prooph_service_bus:
command_buses:
app_command_bus: ~
@@ -0,0 +1,14 @@
prooph_service_bus:
command_buses:
app_command_bus: ~
services:
Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.app_command_bus'
# Make sure App\Messaging\* services are not overriden in `config/services.yaml`
command_handlers:
resource: '../../src/Messaging/Command'
namespace: App\Messaging\Command\
public: true
tags:
- { name: 'prooph_service_bus.app_command_bus.route_target', message_detection: true }