EventWatcher
class EventWatcher extends Watcher
Traits
Properties
| protected Dispatcher | $events | The event dispatcher. |
Methods
Hide query credentials without changing unrelated URL bytes.
Record an event was fired.
Extract the payload and tags from the event.
Format list of event listeners.
Determine if the event should be ignored.
Determine if the event was fired internally by the framework.
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
Watcher at line 55
protected string
hideQueryParameters(string $uri)
Hide query credentials without changing unrelated URL bytes.
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.