1 | <?php |
||
23 | class MigrateCommand extends AbstractCommand implements LoggerAwareInterface |
||
24 | { |
||
25 | use LoggerAwareTrait; |
||
26 | |||
27 | /** |
||
28 | * The default command name |
||
29 | * |
||
30 | * @var string|null |
||
31 | */ |
||
32 | protected static $defaultName = 'database:migrate'; |
||
33 | |||
34 | /** |
||
35 | * Database migrations helper |
||
36 | * |
||
37 | * @var Migrations |
||
38 | */ |
||
39 | private $migrations; |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param Migrations $migrations Database migrations helper |
||
45 | */ |
||
46 | 3 | public function __construct(Migrations $migrations) |
|
52 | |||
53 | /** |
||
54 | * Internal function to execute the command. |
||
55 | * |
||
56 | * @param InputInterface $input The input to inject into the command. |
||
57 | * @param OutputInterface $output The output to inject into the command. |
||
58 | * |
||
59 | * @return integer The command exit code |
||
60 | */ |
||
61 | 3 | protected function doExecute(InputInterface $input, OutputInterface $output): int |
|
101 | |||
102 | /** |
||
103 | * Configures the current command. |
||
104 | * |
||
105 | * @return void |
||
106 | */ |
||
107 | 3 | protected function configure(): void |
|
117 | } |
||
118 |