API Events HttpRequestSentEvent - evansims/openfga-php GitHub Wiki
Event fired when an HTTP request is sent to the OpenFGA API. This event contains the outgoing request details for telemetry and debugging.
Table of Contents
OpenFGA\Events
public function getEventId(): stringGet the unique identifier for this event.
string — A unique identifier for the event instance
public function getEventType(): stringGet the name/type of this event.
string — The event type identifier
public function getModelId(): string|nullGet the model ID for the operation.
string | null — The model ID or null if not applicable
public function getOccurredAt(): DateTimeImmutableGet when this event occurred.
DateTimeImmutable — The timestamp when the event was created
public function getOperation(): stringGet the OpenFGA operation name.
string — The operation name (for example, 'check', 'write', 'read')
public function getPayload(): arrayGet the event payload data.
array — The event data
public function getRequest(): RequestInterfaceGet the HTTP request being sent.
RequestInterface — The PSR-7 request object
public function getStoreId(): string|nullGet the store ID for the operation.
string | null — The store ID or null if not applicable
public function isPropagationStopped(): boolCheck if event propagation should be stopped.
bool — True if propagation should be stopped
public function stopPropagation(): voidStop event propagation to remaining listeners.
void