Step 02 — Conformist (Invoicing)
- Ajout Symfony Messenger comme bus d'intégration - MessengerSalesEventPublisher remplace le NaivePublisher pour dispatch via Messenger - WhenOrderConfirmed (Invoicing) : consumer Conformist qui consomme sales.v1.OrderConfirmed tel quel - Tests de compatibilité Conformist et intégration - Configuration Messenger avec transport sync
This commit is contained in:
11
apps/symfony/config/packages/messenger.yaml
Normal file
11
apps/symfony/config/packages/messenger.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
framework:
|
||||
messenger:
|
||||
default_bus: messenger.bus.default
|
||||
buses:
|
||||
messenger.bus.default: ~
|
||||
transports:
|
||||
sync: 'sync://'
|
||||
routing:
|
||||
'MiniShop\Contracts\Sales\V1\Event\OrderConfirmed': sync
|
||||
'MiniShop\Contracts\Sales\V1\Event\OrderPlaced': sync
|
||||
'MiniShop\Contracts\Sales\V1\Event\OrderCancelled': sync
|
||||
@@ -25,7 +25,7 @@ services:
|
||||
alias: MiniShop\Sales\Infrastructure\Persistence\InMemoryOrderRepository
|
||||
|
||||
MiniShop\Sales\Application\Port\SalesEventPublisher:
|
||||
alias: MiniShop\Sales\Infrastructure\Messaging\NaiveSalesEventPublisher
|
||||
alias: MiniShop\Sales\Infrastructure\Messaging\MessengerSalesEventPublisher
|
||||
|
||||
# --- Invoicing ---
|
||||
MiniShop\Invoicing\Application\:
|
||||
|
||||
Reference in New Issue
Block a user