[Chapter 7] Carlos: For non PHP readers, __invoke() vs. handle() (handle)

This commit is contained in:
Carlos Buenosvinos
2022-03-12 16:38:30 +01:00
parent 201bfe3c32
commit f943995aaf
2 changed files with 5 additions and 5 deletions

View File

@@ -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\:

View File

@@ -5,7 +5,7 @@ services:
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"