MCPcopy Create free account
hub / github.com/Rello/analytics / dispatch

Function dispatch

tests/integration/share-audit.php:31–31  ·  view source on GitHub ↗
(string $eventName, Event $event)

Source from the content-addressed store, hash-verified

29 public function addServiceListener(string $eventName, string $className, int $priority = 0): void {}
30 public function hasListeners(string $eventName): bool { return false; }
31 public function dispatch(string $eventName, Event $event): void { $this->dispatchTyped($event); }
32 public function dispatchTyped(Event $event): void {
33 if (!$event instanceof CriticalActionPerformedEvent) {
34 throw new RuntimeException('Unexpected audit event type');

Callers

nothing calls this directly

Calls 1

dispatchTypedMethod · 0.80

Tested by

no test coverage detected