averor/sf-messenger-ext-bundle
ramsey/uuid (for message IDs) and Symfony’s event contracts—modest footprint if already using Messenger.symfony/messenger:^6.0 if applicable.ramsey/uuid? If not, add to dependencies.stamp()) or libraries like symfony/messenger-bundle suffice?spatie/laravel-messenger) + this bundle via Composer (requires Symfony components).spatie/laravel-activitylog.composer.json and register in config/bundles.php.MessageLoggingMiddleware).config/packages/messenger.yaml:
framework:
messenger:
buses:
main:
middleware:
- averor_sf_messenger_ext.message_logging
- averor_sf_messenger_ext.event_causation
composer.json).symfony/messenger (e.g., Envelope structure).symfony/event-dispatcher-contracts.ramsey/uuid (v4 supports PHP 8).| Priority | Task | Dependencies |
|---|---|---|
| 1 | Bundle registration | Symfony 5+ |
| 2 | Middleware implementation | Custom logger/listeners |
| 3 | Exception listener setup | EventDispatcher |
| 4 | Performance benchmarking | Load testing |
| 5 | Documentation updates | Internal runbooks |
Envelope changes).symfony/messenger:consume).ramsey/uuid’s cache.| Scenario | Impact | Mitigation |
|---|---|---|
| Middleware throws exception | Message lost or retried | Use Handling middleware to rethrow. |
| Event listener fails | Unlogged exceptions | Fallback to file logging (temporarily). |
| Symfony Messenger upgrade | Bundle incompatibility | Test with symfony/messenger:dev. |
| UUID collision | Duplicate message IDs | Use ramsey/uuid’s time-based generation. |
messenger.yaml).Monolog subscribers).How can I help you explore Laravel packages today?