|
@@ 73-78 (lines=6) @@
|
| 70 |
|
|
| 71 |
|
$this->loopResolver->loopStep($key, $value); |
| 72 |
|
|
| 73 |
|
foreach ($step->dsl['steps'] as $j => $stepDef) { |
| 74 |
|
$type = $stepDef['type']; |
| 75 |
|
unset($stepDef['type']); |
| 76 |
|
$subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array())); |
| 77 |
|
$result = $stepExecutors[$j]->execute($subStep); |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
} else { |
| 81 |
|
// NB: we are *not* firing events for each pass of the loop... it might be worth making that optionally happen ? |
|
@@ 86-91 (lines=6) @@
|
| 83 |
|
|
| 84 |
|
$this->loopResolver->loopStep(); |
| 85 |
|
|
| 86 |
|
foreach ($step->dsl['steps'] as $j => $stepDef) { |
| 87 |
|
$type = $stepDef['type']; |
| 88 |
|
unset($stepDef['type']); |
| 89 |
|
$subStep = new MigrationStep($type, $stepDef, array_merge($step->context, array())); |
| 90 |
|
$result = $stepExecutors[$j]->execute($subStep); |
| 91 |
|
} |
| 92 |
|
} |
| 93 |
|
} |
| 94 |
|
|