Adds some contracts, stamps and middlewares to the Symfony Messenger component.
Bundle provides interface only, logger must be implemented in App.
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.
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.
Adds stamp with unique message id (Ramsey\Uuid\Uuid
) to every message on bus, that middleware is attached to.