EventWatcher
class EventWatcher extends Watcher
Traits
Properties
| protected Dispatcher | $events | The event dispatcher. |
Methods
void
string
from
FormatsClosure
void
recordEvent(string $event, array $payload)
Record an event was fired.
array
extractPayload(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 18
__construct(array $options = [])
Create a new watcher instance.
at line 33
void
register(Application $app)
Register the watcher.
in
Watcher at line 41
protected array
hideParameters(array $data, array $hidden)
Hide the given parameters.
in
FormatsClosure at line 18
protected string
formatClosureListener(Closure $listener)
Format a closure-based listener.
at line 43
void
recordEvent(string $event, array $payload)
Record an event was fired.
at line 64
protected array
extractPayload(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 140
protected bool
eventIsIgnored(string $eventName)
Determine if the event is ignored manually.