averor/sf-messenger-ext-bundle

Symfony Messenger extension

1.1.1 2021-07-20 06:59 UTC

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.