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