From f943995aaf79096670c1d436b568ddd482247548 Mon Sep 17 00:00:00 2001 From: Carlos Buenosvinos Date: Sat, 12 Mar 2022 16:38:30 +0100 Subject: [PATCH] [Chapter 7] Carlos: For non PHP readers, __invoke() vs. handle() (handle) --- config/services.yaml | 8 ++++---- docker-compose.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/services.yaml b/config/services.yaml index 6aa693a..82ae35f 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -135,25 +135,25 @@ services: namespace: Cheeper\Chapter7\Application\ resource: '../src/Cheeper/Chapter7/Application/**/Command/*CommandHandler.php' tags: - - { name: messenger.message_handler, bus: command.bus } + - { name: messenger.message_handler, bus: command.bus, method: handle } chapter7_event_handlers: namespace: Cheeper\Chapter7\Application\ resource: '../src/Cheeper/Chapter7/Application/**/*EventHandler.php' tags: - - { name: messenger.message_handler, bus: event.bus } + - { name: messenger.message_handler, bus: event.bus, method: handle } chapter7_query_handlers: namespace: Cheeper\Chapter7\Application\ resource: '../src/Cheeper/Chapter7/Application/**/*QueryHandler.php' tags: - - { name: messenger.message_handler, bus: query.bus } + - { name: messenger.message_handler, bus: query.bus, method: handle } chapter7_projection_handlers: namespace: Cheeper\Chapter7\Application\ resource: '../src/Cheeper/Chapter7/Application/**/*ProjectionHandler.php' tags: - - { name: messenger.message_handler, bus: projection.bus } + - { name: messenger.message_handler, bus: projection.bus, method: handle } # CHAPTER 8 Cheeper\Chapter8\: diff --git a/docker-compose.yaml b/docker-compose.yaml index 7530322..e3f3cb5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,7 @@ services: ports: - "6379:6379" rabbitmq: - + image: rabbitmq:management ports: - "5672:5672" - "15672:15672"