Skip to content

Commit

Permalink
Fixed configuration format
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Oct 31, 2023
1 parent 2c7ca16 commit a8de128
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Cloud/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function fromLegacyConfiguration(array $configuration): DTO\Pipeli

return new DTO\Pipeline(
$configuration['pipeline']['name'] ?? sprintf('Pipeline %s', $random),
$configuration['pipeline']['code'] ?? sprintf('pipeline_%s', $random),
$configuration['code'] ?? sprintf('pipeline_%s', $random),
new DTO\StepList(
...array_map(function (array $stepConfig, int $order) {
$name = $stepConfig['name'] ?? sprintf('step%d', $order);
Expand Down
2 changes: 1 addition & 1 deletion src/Cloud/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function fromLegacyConfiguration(array $configuration): DTO\Workfl

return new DTO\Workflow(
$configuration['workflow']['name'] ?? sprintf('Workflow %s', $random),
$configuration['workflow']['code'] ?? sprintf('workflow_%s', $random),
$configuration['code'] ?? sprintf('workflow_%s', $random),
new DTO\JobList(
...array_map(
function (array $config, int $order) {
Expand Down

0 comments on commit a8de128

Please sign in to comment.