KMP PHP API Reference

MaterializeBestowalTodosCommand extends Command
in package
uses LocatorAwareTrait

Backfill the parallel to-do checklist for bestowals that predate (or were created without) their award's assigned bestowal to-do template.

New bestowals materialize their checklist automatically via BestowalCreationService / AdHocBestowalService. This command exists for onboarding: bestowals created by the recommendation backfill migration are written before templates are assigned to awards, so they need a one-time materialization pass. Materialization is idempotent, so re-running is safe and never duplicates checklist items.

Table of Contents

Properties

$materializationService  : BestowalTodoMaterializationService

Methods

__construct()  : mixed
buildOptionParser()  : ConsoleOptionParser
Build command options.
execute()  : int
Execute the command.

Properties

Methods

buildOptionParser()

Build command options.

public buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
$parser : ConsoleOptionParser

Option parser

Return values
ConsoleOptionParser

execute()

Execute the command.

public execute(Arguments $args, ConsoleIo $io) : int
Parameters
$args : Arguments

Command arguments

$io : ConsoleIo

Console IO

Return values
int
On this page

Search results