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