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
Methods
- __construct() : mixed
- buildOptionParser() : ConsoleOptionParser
- Build command options.
- execute() : int
- Execute the command.
Properties
$materializationService
private
BestowalTodoMaterializationService
$materializationService
Methods
__construct()
public
__construct([BestowalTodoMaterializationService|null $materializationService = null ]) : mixed
Parameters
- $materializationService : BestowalTodoMaterializationService|null = null
-
Optional injected service.
buildOptionParser()
Build command options.
public
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser
-
Option parser
Return values
ConsoleOptionParserexecute()
Execute the command.
public
execute(Arguments $args, ConsoleIo $io) : int
Parameters
- $args : Arguments
-
Command arguments
- $io : ConsoleIo
-
Console IO