| 1 | <?php |
||
| 13 | class MigrateAllCommand |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Migrate command |
||
| 17 | * |
||
| 18 | * @var MigrateCommand |
||
| 19 | */ |
||
| 20 | private $migrateCommand; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Migrations config |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | private $migrationsConfig; |
||
| 28 | |||
| 29 | public function __construct(MigrateCommand $migrateCommand, array $migrationsConfig) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get migrate command |
||
| 37 | * |
||
| 38 | * @return MigrateCommand |
||
| 39 | */ |
||
| 40 | public function getMigrateCommand() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get migrations config |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function getMigrationsConfig() |
||
| 54 | |||
| 55 | public function __invoke(Route $route, AdapterInterface $console) |
||
| 64 | } |