messenger-monitor-bundle icon indicating copy to clipboard operation
messenger-monitor-bundle copied to clipboard

Add ability to selectively enable/disable

Open tacman opened this issue 1 year ago • 2 comments

I'd like to only enable the monitor in certain situations, but want to keep it in bundles.php (so routing and dependency injection works, even if not enabled).

it looks like there's only the ability to disable live-components

zenstruck_messenger_monitor:
    live_components:
        enabled: false
        role: ROLE_MESSENGER_MONITOR

tacman avatar Jan 16 '24 16:01 tacman

Good idea, keep 'em coming!

Little update on this bundle: it has taken a bit of a backseat right now while I focus on other things but I really want to get back to developing this. I've chatted with @nikophil (he helps me maintain other zenstruck packages) and he's going to help me development here as well.

kbond avatar Feb 15 '24 22:02 kbond

I see v0.3 was released last week, and I think the ability to disable monitoring via a stamp or attribute is new, yes?

I'm still running into issues where the monitoring via this bundle appears to hang the message processing, so the ability to completely disable the bundle from the config is important. Otherwise, to disable the bundle I have to remove the ProcessedMessage entity and repository, and the config, and of course from bundles.php.

tacman avatar Jul 17 '24 10:07 tacman