WorkflowSyncCommand
extends WorkflowDiffCommand
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- defaultName() : string
- execute() : int
- buildOptionParser() : ConsoleOptionParser
- canonicalJson() : string
- Encode arrays with recursively sorted keys for stable comparison.
- diffDefinitions() : int
- Compare repo seed definitions to published database versions.
-
loadSeedDefinitions()
: array<int, array{meta: array
, definition: array }> - Load workflow definition JSON files referenced by the seed metadata.
- getVersionManager() : WorkflowVersionManagerInterface
- Get the workflow version manager.
Properties
$versionManager
private
WorkflowVersionManagerInterface|null
$versionManager
= null
Methods
__construct()
public
__construct([CommandFactoryInterface|null $factory = null ][, WorkflowVersionManagerInterface|null $versionManager = null ]) : mixed
Parameters
- $factory : CommandFactoryInterface|null = null
-
Command factory
- $versionManager : WorkflowVersionManagerInterface|null = null
-
Version manager
defaultName()
public
static defaultName() : string
Tags
Return values
stringexecute()
public
execute(Arguments $args, ConsoleIo $io) : int
Parameters
- $args : Arguments
- $io : ConsoleIo
Tags
Return values
intbuildOptionParser()
protected
buildOptionParser(ConsoleOptionParser $parser) : ConsoleOptionParser
Parameters
- $parser : ConsoleOptionParser
Tags
Return values
ConsoleOptionParsercanonicalJson()
Encode arrays with recursively sorted keys for stable comparison.
protected
canonicalJson(array<string|int, mixed> $value) : string
Parameters
- $value : array<string|int, mixed>
-
Value to encode
Return values
string —Canonical JSON
diffDefinitions()
Compare repo seed definitions to published database versions.
protected
diffDefinitions(ConsoleIo $io) : int
Parameters
- $io : ConsoleIo
-
Console IO
Return values
int —Number of differences found
loadSeedDefinitions()
Load workflow definition JSON files referenced by the seed metadata.
protected
loadSeedDefinitions() : array<int, array{meta: array, definition: array}>
Return values
array<int, array{meta: arraygetVersionManager()
Get the workflow version manager.
private
getVersionManager() : WorkflowVersionManagerInterface