| @@ 26-46 (lines=21) @@ | ||
| 23 | /** |
|
| 24 | * {@inheritdoc} |
|
| 25 | */ |
|
| 26 | protected function configure() |
|
| 27 | { |
|
| 28 | parent::configure(); |
|
| 29 | ||
| 30 | $this |
|
| 31 | ->setName('ongr:es:type:drop') |
|
| 32 | ->setDescription('Updates elasticsearch index mappings.') |
|
| 33 | ->addOption( |
|
| 34 | 'type', |
|
| 35 | 't', |
|
| 36 | InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
| 37 | 'Specific types to drop.', |
|
| 38 | [] |
|
| 39 | ) |
|
| 40 | ->addOption( |
|
| 41 | 'force', |
|
| 42 | 'f', |
|
| 43 | InputOption::VALUE_NONE, |
|
| 44 | 'Set this parameter to execute this command' |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * {@inheritdoc} |
|
| @@ 26-46 (lines=21) @@ | ||
| 23 | /** |
|
| 24 | * {@inheritdoc} |
|
| 25 | */ |
|
| 26 | protected function configure() |
|
| 27 | { |
|
| 28 | parent::configure(); |
|
| 29 | ||
| 30 | $this |
|
| 31 | ->setName('ongr:es:type:update') |
|
| 32 | ->setDescription('Updates elasticsearch index mappings.') |
|
| 33 | ->addOption( |
|
| 34 | 'force', |
|
| 35 | 'f', |
|
| 36 | InputOption::VALUE_NONE, |
|
| 37 | 'Set this parameter to execute this command' |
|
| 38 | ) |
|
| 39 | ->addOption( |
|
| 40 | 'type', |
|
| 41 | 't', |
|
| 42 | InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
| 43 | 'Set this parameter to update only a specific types', |
|
| 44 | [] |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * {@inheritdoc} |
|