ReverbWatcher
class ReverbWatcher extends Watcher
Properties
| protected EntriesRepository|null | $entriesRepository | The entries repository. |
Methods
Record a Reverb event.
Extract entry content from the event.
Extract tags for the entry.
Truncate message content to the configured size limit.
Map config event names to Reverb event classes.
Default events to record.
Details
in
Watcher at line 18
__construct(array $options = [])
Create a new watcher instance.
at line 23
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
at line 53
protected void
recordReverbEvent(string $eventName, object $event)
Record a Reverb event.
Preserves outer recording state because Reverb events can fire inside an already-recording HTTP request or queue job coroutine (e.g. MessageSent during a broadcast triggered by EventsController). Only starts/stops recording when no outer context is active (pure WebSocket coroutines).
at line 81
protected array
extractEventData(string $eventName, object $event)
Extract entry content from the event.
at line 123
protected array
extractTags(object $event)
Extract tags for the entry.
at line 141
protected string
truncateMessage(string $message)
Truncate message content to the configured size limit.
at line 155
protected array
eventMap()
Map config event names to Reverb event classes.
at line 171
protected array
defaultEvents()
Default events to record.