3 namespace Wallabag\ImportBundle\Controller
;
5 use Symfony\Component\HttpFoundation\Request
;
6 use Symfony\Component\Routing\Annotation\Route
;
8 class ElcuratorController
extends WallabagController
11 * @Route("/elcurator", name="import_elcurator")
13 public function indexAction(Request
$request)
15 return parent
::indexAction($request);
21 protected function getImportService()
23 $service = $this->get('wallabag_import.elcurator.import');
25 if ($this->get('craue_config')->get('import_with_rabbitmq')) {
26 $service->setProducer($this->get('old_sound_rabbit_mq.import_elcurator_producer'));
27 } elseif ($this->get('craue_config')->get('import_with_redis')) {
28 $service->setProducer($this->get('wallabag_import.producer.redis.elcurator'));
37 protected function getImportTemplate()
39 return 'WallabagImportBundle:Elcurator:index.html.twig';