CodeExplorervalidateUpdateCommands example
if ($command instanceof UpdateCommand
) { $updateQueue[] =
$command;
continue;
} throw new UnsupportedCommandTypeException($command);
} if (!
empty($updateQueue)) { $this->
validateUpdateCommands($updateQueue,
$writeException,
$event->
getContext());
} } private function validateCondition( ?RuleConditionEntity
$condition,
WriteCommand
$command,
WriteException
$writeException,
Context
$context ): void
{ $payload =
$command->
getPayload();
$violationList =
new ConstraintViolationList();