]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/ImportBundle/Controller/WallabagV1Controller.php
Send every imported item to the queue
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Controller / WallabagV1Controller.php
CommitLineData
b1d05721
JB
1<?php
2
3namespace Wallabag\ImportBundle\Controller;
4
b1d05721
JB
5use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
6use Symfony\Component\HttpFoundation\Request;
b1d05721 7
b787a775 8class WallabagV1Controller extends WallabagController
b1d05721
JB
9{
10 /**
b787a775 11 * {@inheritdoc}
b1d05721 12 */
b787a775 13 protected function getImportService()
b1d05721 14 {
b787a775
JB
15 return $this->get('wallabag_import.wallabag_v1.import');
16 }
b1d05721 17
b787a775
JB
18 /**
19 * {@inheritdoc}
20 */
21 protected function getImportTemplate()
22 {
23 return 'WallabagImportBundle:WallabagV1:index.html.twig';
24 }
b1d05721 25
b787a775
JB
26 /**
27 * @Route("/wallabag-v1", name="import_wallabag_v1")
28 */
29 public function indexAction(Request $request)
30 {
31 return parent::indexAction($request);
b1d05721
JB
32 }
33}