mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-15 00:56:29 +03:00
Auto-register command handlers
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
services:
|
||||
Prooph\Bundle\ServiceBus\CommandBus: '@prooph_service_bus.default_command_bus'
|
||||
|
||||
prooph_service_bus:
|
||||
command_buses:
|
||||
default_command_bus: ~
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
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 }]
|
||||
Reference in New Issue
Block a user