forked from wallabag/wallabag
create ImportController to list importers
This commit is contained in:
committed by
Jeremy Benoist
parent
557e549db7
commit
d51b38ed30
17
src/Wallabag/ImportBundle/Controller/ImportController.php
Normal file
17
src/Wallabag/ImportBundle/Controller/ImportController.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
||||
|
||||
class ImportController extends Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/import", name="import")
|
||||
*/
|
||||
public function importAction()
|
||||
{
|
||||
return $this->render('WallabagImportBundle:Import:index.html.twig', array());
|
||||
}
|
||||
}
|
||||
@ -4,20 +4,19 @@ namespace Wallabag\ImportBundle\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
|
||||
use Wallabag\ImportBundle\Import\PocketImport;
|
||||
|
||||
class PocketController extends Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/import", name="import")
|
||||
* @Route("/import/pocket", name="pocket")
|
||||
*/
|
||||
public function importAction()
|
||||
public function indexAction()
|
||||
{
|
||||
return $this->render('WallabagImportBundle:Pocket:index.html.twig', array());
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/auth-pocket", name="authpocket")
|
||||
* @Route("/import/pocket/auth", name="authpocket")
|
||||
*/
|
||||
public function authAction()
|
||||
{
|
||||
@ -28,7 +27,7 @@ class PocketController extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/callback-pocket", name="callbackpocket")
|
||||
* @Route("/import/pocket/callback", name="callbackpocket")
|
||||
*/
|
||||
public function callbackAction()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user