1 | <?php |
||
24 | class ResetCommand extends ContainerAwareCommand |
||
25 | { |
||
26 | /** |
||
27 | * @var IndexManager |
||
28 | */ |
||
29 | private $indexManager; |
||
30 | |||
31 | /** |
||
32 | * @var Resetter |
||
33 | */ |
||
34 | private $resetter; |
||
35 | |||
36 | /** |
||
37 | * @see Symfony\Component\Console\Command\Command::configure() |
||
38 | */ |
||
39 | 3 | protected function configure() |
|
40 | { |
||
41 | 3 | $this |
|
42 | 3 | ->setName('fos:elastica:reset') |
|
43 | 3 | ->addOption('index', null, InputOption::VALUE_OPTIONAL, 'The index to reset') |
|
44 | 3 | ->addOption('type', null, InputOption::VALUE_OPTIONAL, 'The type to reset') |
|
45 | 3 | ->addOption('force', null, InputOption::VALUE_NONE, 'Force index deletion if same name as alias') |
|
46 | 3 | ->setDescription('Reset search indexes') |
|
47 | ; |
||
48 | 3 | } |
|
49 | |||
50 | /** |
||
51 | * @see Symfony\Component\Console\Command\Command::initialize() |
||
52 | */ |
||
53 | 3 | protected function initialize(InputInterface $input, OutputInterface $output) |
|
58 | |||
59 | /** |
||
60 | * @see Symfony\Component\Console\Command\Command::execute() |
||
61 | */ |
||
62 | 3 | protected function execute(InputInterface $input, OutputInterface $output) |
|
87 | } |
||
88 |