3 namespace Wallabag\ImportBundle\Controller
;
5 use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
6 use Symfony\Component\HttpFoundation\Request
;
8 class WallabagV2Controller
extends WallabagController
13 protected function getImportService()
15 $service = $this->get('wallabag_import.wallabag_v2.import');
17 if ($this->get('craue_config')->get('import_with_rabbitmq')) {
18 $service->setProducer($this->get('old_sound_rabbit_mq.import_wallabag_v2_producer'));
19 } elseif ($this->get('craue_config')->get('import_with_redis')) {
20 $service->setProducer($this->get('wallabag_import.producer.redis.wallabag_v2'));
29 protected function getImportTemplate()
31 return 'WallabagImportBundle:WallabagV2:index.html.twig';
35 * @Route("/wallabag-v2", name="import_wallabag_v2")
37 public function indexAction(Request
$request)
39 return parent
::indexAction($request);