KMP PHP API Reference

BestowalTodoCompletionListener
in package
implements EventListenerInterface

Synchronizes bestowal projections and finalizes completed bestowals.

The core ActionItem subsystem stays plugin-agnostic and merely announces an ActionItem.completed event. The Awards plugin listens for it here, syncs a newly scheduled bestowal after the surrounding to-do transaction commits, and flips the lifecycle to "given" once all gating checks are complete.

Best-effort: any failure is logged but never disrupts the to-do transition. One-directional by design — reopening a completed gating item does not revert a bestowal back to "open".

Table of Contents

Interfaces

EventListenerInterface

Properties

$finalizationService  : BestowalFinalizationService
$syncService  : BestowalRecommendationSyncService

Methods

__construct()  : mixed
handleCompletedTodo()  : void
Synchronize or finalize the owning bestowal when a gating to-do completes.
implementedEvents()  : array<string, string>

Properties

Methods

handleCompletedTodo()

Synchronize or finalize the owning bestowal when a gating to-do completes.

public handleCompletedTodo(EventInterface $event) : void
Parameters
$event : EventInterface

The ActionItem.completed event.

On this page

Search results