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