1 | <?php |
||
33 | class StartCommand extends Command { |
||
34 | |||
35 | protected $stack = [ |
||
36 | [ 'command' => 'upgrade:info'], |
||
37 | [ 'command' => 'upgrade:checkSystem'], |
||
38 | [ 'command' => 'upgrade:detect', '--exit-if-none' => '1'], |
||
39 | //[ 'command' => 'upgrade:maintenanceMode', '--on' => '1'], |
||
40 | [ 'command' => 'upgrade:backupDb'], |
||
41 | [ 'command' => 'upgrade:backupData'], |
||
42 | [ 'command' => 'upgrade:checkpoint', '--create' => '1'], |
||
43 | [ 'command' => 'upgrade:preUpgradeRepair'], |
||
44 | [ 'command' => 'upgrade:executeCoreUpgradeScripts'], |
||
45 | [ 'command' => 'upgrade:cleanCache'], |
||
46 | [ 'command' => 'upgrade:postUpgradeRepair'], |
||
47 | [ 'command' => 'upgrade:restartWebServer'], |
||
48 | [ 'command' => 'upgrade:updateConfig'], |
||
49 | //[ 'command' => 'upgrade:maintenanceMode', '--off' => '1'], |
||
50 | [ 'command' => 'upgrade:postUpgradeCleanup'], |
||
51 | ]; |
||
52 | |||
53 | protected function configure(){ |
||
59 | |||
60 | /** |
||
61 | * @param InputInterface $input |
||
62 | * @param OutputInterface $output |
||
63 | */ |
||
64 | protected function execute(InputInterface $input, OutputInterface $output){ |
||
76 | |||
77 | } |
||
78 |