| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 24 | { |
||
| 25 | $force = $input->getOption('force'); |
||
| 26 | |||
| 27 | if (!$force) { |
||
| 28 | echo "Specificare l'opzione --force per eseguire il comando"; |
||
| 29 | |||
| 30 | return 1; |
||
| 31 | } |
||
| 32 | |||
| 33 | $command = $this->getApplication()->find('doctrine:schema:drop'); |
||
| 34 | $arguments = array('command' => 'doctrine:schema:drop', '--force' => true); |
||
| 35 | $inputcmd = new ArrayInput($arguments); |
||
| 36 | $command->run($inputcmd, $output); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |