1 | <?php |
||
21 | class PopulateCommand extends ContainerAwareCommand |
||
22 | { |
||
23 | /** |
||
24 | * @var \Symfony\Component\EventDispatcher\EventDispatcherInterface |
||
25 | */ |
||
26 | private $dispatcher; |
||
27 | |||
28 | /** |
||
29 | * @var IndexManager |
||
30 | */ |
||
31 | private $indexManager; |
||
32 | |||
33 | /** |
||
34 | * @var ProgressClosureBuilder |
||
35 | */ |
||
36 | private $progressClosureBuilder; |
||
37 | |||
38 | /** |
||
39 | * @var ProviderRegistry |
||
40 | */ |
||
41 | private $providerRegistry; |
||
42 | |||
43 | /** |
||
44 | * @var Resetter |
||
45 | */ |
||
46 | private $resetter; |
||
47 | |||
48 | /** |
||
49 | * @see Symfony\Component\Console\Command\Command::configure() |
||
50 | */ |
||
51 | protected function configure() |
||
52 | { |
||
53 | $this |
||
54 | ->setName('fos:elastica:populate') |
||
55 | ->addOption('index', null, InputOption::VALUE_OPTIONAL, 'The index to repopulate') |
||
56 | ->addOption('type', null, InputOption::VALUE_OPTIONAL, 'The type to repopulate') |
||
57 | ->addOption('no-reset', null, InputOption::VALUE_NONE, 'Do not reset index before populating') |
||
58 | ->addOption('offset', null, InputOption::VALUE_REQUIRED, 'Start indexing at offset', 0) |
||
59 | ->addOption('sleep', null, InputOption::VALUE_REQUIRED, 'Sleep time between persisting iterations (microseconds)', 0) |
||
60 | ->addOption('batch-size', null, InputOption::VALUE_REQUIRED, 'Index packet size (overrides provider config option)') |
||
61 | ->addOption('ignore-errors', null, InputOption::VALUE_NONE, 'Do not stop on errors') |
||
62 | ->addOption('no-overwrite-format', null, InputOption::VALUE_NONE, 'Prevent this command from overwriting ProgressBar\'s formats') |
||
63 | ->setDescription('Populates search indexes from providers') |
||
64 | ; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * {@inheritDoc} |
||
69 | */ |
||
70 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
85 | |||
86 | /** |
||
87 | * {@inheritDoc} |
||
88 | */ |
||
89 | protected function execute(InputInterface $input, OutputInterface $output) |
||
129 | |||
130 | /** |
||
131 | * Recreates an index, populates its types, and refreshes the index. |
||
132 | * |
||
133 | * @param OutputInterface $output |
||
134 | * @param string $index |
||
135 | * @param boolean $reset |
||
136 | * @param array $options |
||
137 | */ |
||
138 | private function populateIndex(OutputInterface $output, $index, $reset, $options) |
||
157 | |||
158 | /** |
||
159 | * Deletes/remaps an index type, populates it, and refreshes the index. |
||
160 | * |
||
161 | * @param OutputInterface $output |
||
162 | * @param string $index |
||
163 | * @param string $type |
||
164 | * @param boolean $reset |
||
165 | * @param array $options |
||
166 | */ |
||
167 | private function populateIndexType(OutputInterface $output, $index, $type, $reset, $options) |
||
185 | |||
186 | /** |
||
187 | * Refreshes an index. |
||
188 | * |
||
189 | * @param OutputInterface $output |
||
190 | * @param string $index |
||
191 | * @param bool $postPopulate |
||
192 | */ |
||
193 | private function refreshIndex(OutputInterface $output, $index, $postPopulate = true) |
||
202 | } |
||
203 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.