| 1 | <?php |
||
| 7 | class MigrateCommand extends AbstractCommand |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Migrator instance. |
||
| 11 | * |
||
| 12 | * @var Migrator |
||
| 13 | */ |
||
| 14 | protected $migrator; |
||
| 15 | |||
| 16 | protected static $defaultName = 'migrate'; |
||
| 17 | /** |
||
| 18 | * Constructor. |
||
| 19 | * |
||
| 20 | * @param Migrator $migrator |
||
| 21 | * @param string|null $name |
||
| 22 | */ |
||
| 23 | public function __construct(Migrator $migrator, $name = null) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Configures the current command. |
||
| 32 | */ |
||
| 33 | protected function configure() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Execute the console command. |
||
| 40 | * |
||
| 41 | * @return null|int |
||
| 42 | */ |
||
| 43 | protected function fire() |
||
| 56 | } |
||
| 57 |