| 1 | <?php |
||
| 21 | class IndexDropCommand extends AbstractManagerAwareCommand |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | protected function configure() |
||
| 27 | { |
||
| 28 | parent::configure(); |
||
| 29 | |||
| 30 | $this |
||
| 31 | ->setName('ongr:es:index:drop') |
||
| 32 | ->setDescription('Drops elasticsearch index.') |
||
| 33 | ->addOption( |
||
| 34 | 'force', |
||
| 35 | 'f', |
||
| 36 | InputOption::VALUE_NONE, |
||
| 37 | 'Set this parameter to execute this command' |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 66 | } |
||
| 67 |