@@ 51-60 (lines=10) @@ | ||
48 | /** |
|
49 | * {@inheritdoc} |
|
50 | */ |
|
51 | protected function execute(InputInterface $input, OutputInterface $output) |
|
52 | { |
|
53 | $manager = $this->getManager($input->getOption('manager')); |
|
54 | ||
55 | /** @var ExportService $exportService */ |
|
56 | $exportService = $this->getContainer()->get('es.export'); |
|
57 | $exportService->exportIndex($manager, $input->getArgument('filename'), $input->getOption('chunk'), $output); |
|
58 | ||
59 | $output->writeln('<info>Data export completed!</info>'); |
|
60 | } |
|
61 | } |
|
62 |
@@ 53-68 (lines=16) @@ | ||
50 | /** |
|
51 | * {@inheritdoc} |
|
52 | */ |
|
53 | protected function execute(InputInterface $input, OutputInterface $output) |
|
54 | { |
|
55 | $manager = $this->getManager($input->getOption('manager')); |
|
56 | ||
57 | /** @var ImportService $importService */ |
|
58 | $importService = $this->getContainer()->get('es.import'); |
|
59 | $importService->importIndex( |
|
60 | $manager, |
|
61 | $input->getArgument('filename'), |
|
62 | $input->getOption('raw'), |
|
63 | $output, |
|
64 | $input->getOption('bulk-size') |
|
65 | ); |
|
66 | ||
67 | $output->writeln('<info>Data import completed!</info>'); |
|
68 | } |
|
69 | } |
|
70 |