averor / sf-messenger-ext-bundle
Symfony Messenger extension
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4
- ramsey/uuid: ^3|^4
- symfony/event-dispatcher-contracts: ^2
- symfony/framework-bundle: ^5
- symfony/messenger: ^5
This package is auto-updated.
Last update: 2024-11-20 13:57:46 UTC
README
averor/sf-messenger-ext-bundle
Adds some contracts, stamps and middlewares to the Symfony Messenger component.
Message Logging Middleware:
Bundle provides interface only, logger must be implemented in App.
Event Causation Middleware:
Event (envelope) will receive stamp with command id, that caused that event to happen. First handled command id is stored only, as a "root" cause of all that happened.
Exception Handling / Silencing Middleware
Message dispatch process become contained in try...catch structure.
Event with exception details is send to provided Symfony\Contracts\EventDispatcher\EventDispatcherInterface
.
Silencing version finishes its work here, while Handling one rethrows original exception.
Identifiable Message Middleware
Adds stamp with unique message id (Ramsey\Uuid\Uuid
) to every message on bus, that middleware is attached to.