Make workflow editing logic extensible
[PREMIUM-194]
This commit is contained in:
@ -73,7 +73,7 @@ class UpdateWorkflowController {
|
||||
}
|
||||
}
|
||||
|
||||
private function validateWorkflowSteps(Workflow $workflow, array $steps): void {
|
||||
protected function validateWorkflowSteps(Workflow $workflow, array $steps): void {
|
||||
$existingSteps = $workflow->getSteps();
|
||||
if (count($steps) !== count($existingSteps)) {
|
||||
throw Exceptions::workflowStructureModificationNotSupported();
|
||||
|
@ -45,7 +45,7 @@ class WorkflowsPutEndpoint extends Endpoint {
|
||||
];
|
||||
}
|
||||
|
||||
private function buildWorkflow(Workflow $workflow): array {
|
||||
protected function buildWorkflow(Workflow $workflow): array {
|
||||
return [
|
||||
'id' => $workflow->getId(),
|
||||
'name' => $workflow->getName(),
|
||||
|
Reference in New Issue
Block a user