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