diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-31 11:24:46 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-02 23:27:41 +0100 |
commit | 7019c7cf6c6af39c0f458769e20c3f9306477943 (patch) | |
tree | 12acceaa458cdf6d24367eba85f690265acddcdb /src/Wallabag/ImportBundle/Controller/PocketController.php | |
parent | b1d05721cf37ab94ec1a6837fe79cf19474dd0ff (diff) | |
download | wallabag-7019c7cf6c6af39c0f458769e20c3f9306477943.tar.gz wallabag-7019c7cf6c6af39c0f458769e20c3f9306477943.tar.zst wallabag-7019c7cf6c6af39c0f458769e20c3f9306477943.zip |
Add tagged services for import
- list services in /import
- add url to import service
- ImportBundle routing are now prefixed by /import
- optimize flush in each import (flushing each 20 contents)
- improve design of each import
- add more tests
Diffstat (limited to 'src/Wallabag/ImportBundle/Controller/PocketController.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Controller/PocketController.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php index ebcee099..a0853383 100644 --- a/src/Wallabag/ImportBundle/Controller/PocketController.php +++ b/src/Wallabag/ImportBundle/Controller/PocketController.php | |||
@@ -8,15 +8,17 @@ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |||
8 | class PocketController extends Controller | 8 | class PocketController extends Controller |
9 | { | 9 | { |
10 | /** | 10 | /** |
11 | * @Route("/import/pocket", name="import_pocket") | 11 | * @Route("/pocket", name="import_pocket") |
12 | */ | 12 | */ |
13 | public function indexAction() | 13 | public function indexAction() |
14 | { | 14 | { |
15 | return $this->render('WallabagImportBundle:Pocket:index.html.twig', []); | 15 | return $this->render('WallabagImportBundle:Pocket:index.html.twig', [ |
16 | 'import' => $this->get('wallabag_import.pocket.import'), | ||
17 | ]); | ||
16 | } | 18 | } |
17 | 19 | ||
18 | /** | 20 | /** |
19 | * @Route("/import/pocket/auth", name="import_pocket_auth") | 21 | * @Route("/pocket/auth", name="import_pocket_auth") |
20 | */ | 22 | */ |
21 | public function authAction() | 23 | public function authAction() |
22 | { | 24 | { |
@@ -32,7 +34,7 @@ class PocketController extends Controller | |||
32 | } | 34 | } |
33 | 35 | ||
34 | /** | 36 | /** |
35 | * @Route("/import/pocket/callback", name="import_pocket_callback") | 37 | * @Route("/pocket/callback", name="import_pocket_callback") |
36 | */ | 38 | */ |
37 | public function callbackAction() | 39 | public function callbackAction() |
38 | { | 40 | { |