Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function handle() |
||
35 | { |
||
36 | $configurationPath = $this->argument('config'); |
||
37 | |||
38 | $pipeline = new Pipeline([ |
||
39 | new EnsureIndexConfigurationFileExistsStage(), |
||
40 | new EnsureIndexVersionsDirectoryExists(), |
||
41 | new CreateVersionDefinitionStage(), |
||
42 | ]); |
||
43 | |||
44 | $payload = new CreateMigrationPayload($configurationPath); |
||
|
|||
45 | $pipeline->process($payload); |
||
46 | |||
47 | $this->output->writeln('Created ' . $payload->getVersionName()); |
||
48 | } |
||
50 |