|
@@ 34-41 (lines=8) @@
|
| 31 |
|
{ |
| 32 |
|
$commands = []; |
| 33 |
|
|
| 34 |
|
$commands[] = $this->registerCommand($container, MigrateCommand::class, function (Container $c) { |
| 35 |
|
return new MigrateCommand( |
| 36 |
|
$c->get(Args::class), |
| 37 |
|
$c->get(OutputInterface::class), |
| 38 |
|
$c->get(Migrator::class), |
| 39 |
|
$c->get('migration-path') |
| 40 |
|
); |
| 41 |
|
}); |
| 42 |
|
|
| 43 |
|
$commands[] = $this->registerCommand($container, MigrateInstallCommand::class, function (Container $c) { |
| 44 |
|
return new MigrateInstallCommand( |
|
@@ 60-67 (lines=8) @@
|
| 57 |
|
); |
| 58 |
|
}); |
| 59 |
|
|
| 60 |
|
$commands[] = $this->registerCommand($container, MigrateResetCommand::class, function (Container $c) { |
| 61 |
|
return new MigrateResetCommand( |
| 62 |
|
$c->get(Args::class), |
| 63 |
|
$c->get(OutputInterface::class), |
| 64 |
|
$c->get(Migrator::class), |
| 65 |
|
$c->get('migration-path') |
| 66 |
|
); |
| 67 |
|
}); |
| 68 |
|
|
| 69 |
|
$commands[] = $this->registerCommand($container, MigrateRollbackCommand::class, function (Container $c) { |
| 70 |
|
return new MigrateRollbackCommand( |
|
@@ 69-76 (lines=8) @@
|
| 66 |
|
); |
| 67 |
|
}); |
| 68 |
|
|
| 69 |
|
$commands[] = $this->registerCommand($container, MigrateRollbackCommand::class, function (Container $c) { |
| 70 |
|
return new MigrateRollbackCommand( |
| 71 |
|
$c->get(Args::class), |
| 72 |
|
$c->get(OutputInterface::class), |
| 73 |
|
$c->get(Migrator::class), |
| 74 |
|
$c->get('migration-path') |
| 75 |
|
); |
| 76 |
|
}); |
| 77 |
|
|
| 78 |
|
$commands[] = $this->registerCommand($container, MigrateStatusCommand::class, function (Container $c) { |
| 79 |
|
return new MigrateStatusCommand( |
|
@@ 78-85 (lines=8) @@
|
| 75 |
|
); |
| 76 |
|
}); |
| 77 |
|
|
| 78 |
|
$commands[] = $this->registerCommand($container, MigrateStatusCommand::class, function (Container $c) { |
| 79 |
|
return new MigrateStatusCommand( |
| 80 |
|
$c->get(Args::class), |
| 81 |
|
$c->get(OutputInterface::class), |
| 82 |
|
$c->get(Migrator::class), |
| 83 |
|
$c->get('migration-path') |
| 84 |
|
); |
| 85 |
|
}); |
| 86 |
|
|
| 87 |
|
return $commands; |
| 88 |
|
} |