| @@ 77-86 (lines=10) @@ | ||
| 74 | foreach ($over as $key => $value) { |
|
| 75 | $this->loopResolver->loopStep($key, $value); |
|
| 76 | ||
| 77 | foreach ($step->dsl['steps'] as $j => $stepDef) { |
|
| 78 | $type = $stepDef['type']; |
|
| 79 | unset($stepDef['type']); |
|
| 80 | $subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array())); |
|
| 81 | try { |
|
| 82 | $result = $stepExecutors[$j]->execute($subStep); |
|
| 83 | } catch(MigrationStepSkippedException $e) { |
|
| 84 | // all ok, continue the loop |
|
| 85 | } |
|
| 86 | } |
|
| 87 | } |
|
| 88 | } else { |
|
| 89 | // NB: we are *not* firing events for each pass of the loop... it might be worth making that optionally happen ? |
|
| @@ 94-103 (lines=10) @@ | ||
| 91 | ||
| 92 | $this->loopResolver->loopStep(); |
|
| 93 | ||
| 94 | foreach ($step->dsl['steps'] as $j => $stepDef) { |
|
| 95 | $type = $stepDef['type']; |
|
| 96 | unset($stepDef['type']); |
|
| 97 | $subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array())); |
|
| 98 | try { |
|
| 99 | $result = $stepExecutors[$j]->execute($subStep); |
|
| 100 | } catch(MigrationStepSkippedException $e) { |
|
| 101 | // all ok, continue the loop |
|
| 102 | } |
|
| 103 | } |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||