pocketHtmlImport = $pocketHtmlImport; $this->craueConfig = $craueConfig; $this->rabbitMqProducer = $rabbitMqProducer; $this->redisProducer = $redisProducer; } /** * @Route("/pocket_html", name="import_pocket_html") */ public function indexAction(Request $request, TranslatorInterface $translator) { return parent::indexAction($request, $translator); } protected function getImportService() { if ($this->craueConfig->get('import_with_rabbitmq')) { $this->pocketHtmlImport->setProducer($this->rabbitMqProducer); } elseif ($this->craueConfig->get('import_with_redis')) { $this->pocketHtmlImport->setProducer($this->redisProducer); } return $this->pocketHtmlImport; } protected function getImportTemplate() { return '@WallabagImport/PocketHtml/index.html.twig'; } }