Command/GenerateCommand.php 1 location
|
@@ 302-313 (lines=12) @@
|
| 299 |
|
return $migrationDirectory; |
| 300 |
|
} |
| 301 |
|
|
| 302 |
|
protected function getGeneratingExecutors() |
| 303 |
|
{ |
| 304 |
|
$migrationService = $this->getMigrationService(); |
| 305 |
|
$executors = $migrationService->listExecutors(); |
| 306 |
|
foreach($executors as $key => $name) { |
| 307 |
|
$executor = $migrationService->getExecutor($name); |
| 308 |
|
if (!$executor instanceof MigrationGeneratorInterface) { |
| 309 |
|
unset($executors[$key]); |
| 310 |
|
} |
| 311 |
|
} |
| 312 |
|
return $executors; |
| 313 |
|
} |
| 314 |
|
} |
| 315 |
|
|
Core/Executor/MigrationDefinitionExecutor.php 1 location
|
@@ 113-124 (lines=12) @@
|
| 110 |
|
* @todo cache this for faster acccess |
| 111 |
|
* @return array |
| 112 |
|
*/ |
| 113 |
|
protected function getGeneratingExecutors() |
| 114 |
|
{ |
| 115 |
|
$migrationService = $this->migrationService; |
| 116 |
|
$executors = $migrationService->listExecutors(); |
| 117 |
|
foreach($executors as $key => $name) { |
| 118 |
|
$executor = $migrationService->getExecutor($name); |
| 119 |
|
if (!$executor instanceof MigrationGeneratorInterface) { |
| 120 |
|
unset($executors[$key]); |
| 121 |
|
} |
| 122 |
|
} |
| 123 |
|
return $executors; |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|