| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 46 | { |
||
| 47 | $io = new SymfonyStyle($input, $output); |
||
| 48 | if ($input->getOption('force')) { |
||
| 49 | $this->getManager($input->getOption('manager'))->dropIndex(); |
||
| 50 | |||
| 51 | $io->text( |
||
| 52 | sprintf( |
||
| 53 | 'Dropped index for the<comment>`%s`</comment> manager', |
||
| 54 | $input->getOption('manager') |
||
| 55 | ) |
||
| 56 | ); |
||
| 57 | } else { |
||
| 58 | $io->error('ATTENTION:'); |
||
| 59 | $io->text('This action should not be used in the production environment.'); |
||
| 60 | $io->error('Option --force is mandatory to drop type(s).'); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | } |
||
| 64 |