mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-20 03:26:24 +03:00
Autowired command handlers
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user