Skip to content
docsv0.8.0

VerificationRequestedEvent

Dispatched when a verification is requested but not yet resolved (async human/agent verify). Listeners can route it to an approver, open a gate passage, etc. Dispatch payload shape: a verifier dispatching this through a {@see \Milpa\Interfaces\Event\MilpaEventDispatcherInterface} MUST use the event name `verification.requested` with a payload of exactly `['event' => VerificationRequestedEvent $event]` — the event OBJECT keyed under `'event'`, not a flattened array of the request's fields. A listener reaches the request via `$payload['event']->getRequest()`.

VerificationRequestedEvent::__construct()

public function __construct(Milpa\ValueObjects\Verification\VerificationRequest $request):

Parameters

Parameters of __construct()
NameTypeDescription
$requestMilpa\ValueObjects\Verification\VerificationRequest

VerificationRequestedEvent::getRequest()

public function getRequest(): Milpa\ValueObjects\Verification\VerificationRequest

VerificationRequestedEvent::getRequestId()

public function getRequestId(): ?string

Correlation id (#7) of the originating request, if one was assigned. Distinguishes concurrent verifications that share the same `subject`.