EventWatcher
class EventWatcher extends Watcher
Traits
Methods
void
string
from
FormatsClosure
void
recordEvent(string $event, array $payload)
Record an event was fired.
array
extractPayload(object|string $event, array $payload)
Extract the payload and tags from the event.
array
formatListeners(string $eventName)
Format list of event listeners.
bool
shouldIgnore(string $eventName)
Determine if the event should be ignored.
bool
eventIsFiredByTheFramework(string $eventName)
Determine if the event was fired internally by the framework.
bool
eventIsIgnored(string $eventName)
Determine if the event is ignored manually.
Details
in
Watcher at line 16
__construct(array $options = [])
Create a new watcher instance.
at line 27
void
register(Application $app)
Register the watcher.
in
FormatsClosure at line 18
protected string
formatClosureListener(Closure $listener)
Format a closure-based listener.
at line 36
void
recordEvent(string $event, array $payload)
Record an event was fired.
at line 58
protected array
extractPayload(object|string $event, array $payload)
Extract the payload and tags from the event.
at line 82
protected array
formatListeners(string $eventName)
Format list of event listeners.
at line 121
protected bool
shouldIgnore(string $eventName)
Determine if the event should be ignored.
at line 130
protected bool
eventIsFiredByTheFramework(string $eventName)
Determine if the event was fired internally by the framework.
at line 152
protected bool
eventIsIgnored(string $eventName)
Determine if the event is ignored manually.