Conditions | 4 |
Paths | 14 |
Total Lines | 24 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
27 | { |
||
28 | try { |
||
29 | $helper = $this->getHelper('question'); |
||
30 | if (!$input->getOption('yes')) { |
||
31 | $question = new ConfirmationQuestion( |
||
32 | 'This will ERASE all of data in your data. Continue with this action? (y/N) ', |
||
33 | false |
||
34 | ); |
||
35 | |||
36 | if (!$helper->ask($input, $output, $question)) { |
||
37 | $output->writeln('Aborted.'); |
||
38 | |||
39 | return; |
||
40 | } |
||
41 | } |
||
42 | |||
43 | parent::execute($input, $output); |
||
44 | $this->migration->prepareEnvironment(); |
||
45 | $this->migration->reset($this->upTo); |
||
46 | } catch (\Exception $ex) { |
||
47 | $this->handleError($ex, $output); |
||
48 | } |
||
49 | } |
||
50 | } |
||
51 |