protected function execute(InputInterface $input, OutputInterface $output) { $currentRevision = NULL; if ($input->getArgument('crawl') == 'crawl') { $this->output->writeln('<comment>LuceneSearch: Start Crawling</comment>'); Tool\Executer::runCrawler(); Tool\Executer::generateSitemap(); $this->output->writeln('LuceneSearch: Finished crawl'); } }
public function stopFrontendCrawlerAction() { $success = Tool\Executer::stopCrawler(); $this->_helper->json(array('success' => $success)); }
public function frontendCrawl() { if (self::frontendConfigComplete()) { Tool\Executer::runCrawler(); Tool\Executer::generateSitemap(); } else { \Pimcore\Logger::debug('LuceneSearch_Plugin: Did not start frontend crawler, because config incomplete'); } }