]>
Commit | Line | Data |
---|---|---|
6785f4aa NL |
1 | <?php |
2 | ||
3 | namespace Wallabag\ImportBundle\Controller; | |
4 | ||
6785f4aa NL |
5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | use Symfony\Component\HttpFoundation\Request; | |
6785f4aa | 7 | |
b787a775 | 8 | class WallabagV2Controller extends WallabagController |
6785f4aa NL |
9 | { |
10 | /** | |
b787a775 | 11 | * {@inheritdoc} |
6785f4aa | 12 | */ |
b787a775 | 13 | protected function getImportService() |
6785f4aa | 14 | { |
b787a775 JB |
15 | return $this->get('wallabag_import.wallabag_v2.import'); |
16 | } | |
6785f4aa | 17 | |
b787a775 JB |
18 | /** |
19 | * {@inheritdoc} | |
20 | */ | |
21 | protected function getImportTemplate() | |
22 | { | |
23 | return 'WallabagImportBundle:WallabagV2:index.html.twig'; | |
24 | } | |
6785f4aa | 25 | |
b787a775 JB |
26 | /** |
27 | * @Route("/wallabag-v2", name="import_wallabag_v2") | |
28 | */ | |
29 | public function indexAction(Request $request) | |
30 | { | |
31 | return parent::indexAction($request); | |
6785f4aa NL |
32 | } |
33 | } |