Make workflow editing logic extensible

[PREMIUM-194]
This commit is contained in:
Jan Jakes
2022-08-31 12:43:08 +02:00
committed by Veljko V
parent a6d5b0d5c5
commit 82b547f40b
2 changed files with 2 additions and 2 deletions

View File

@ -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(); $existingSteps = $workflow->getSteps();
if (count($steps) !== count($existingSteps)) { if (count($steps) !== count($existingSteps)) {
throw Exceptions::workflowStructureModificationNotSupported(); throw Exceptions::workflowStructureModificationNotSupported();

View File

@ -45,7 +45,7 @@ class WorkflowsPutEndpoint extends Endpoint {
]; ];
} }
private function buildWorkflow(Workflow $workflow): array { protected function buildWorkflow(Workflow $workflow): array {
return [ return [
'id' => $workflow->getId(), 'id' => $workflow->getId(),
'name' => $workflow->getName(), 'name' => $workflow->getName(),