aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2015-10-23 14:09:19 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-02 23:24:17 +0100
commit557e549db7932e9101f60bfda64238a235a0ce3b (patch)
tree4eb7a542abc4cfc82a8c136701e58a1466a5ebf3
parent9c9c23cf0843405cd4b0de3bae8d428cb39b5720 (diff)
downloadwallabag-557e549db7932e9101f60bfda64238a235a0ce3b.tar.gz
wallabag-557e549db7932e9101f60bfda64238a235a0ce3b.tar.zst
wallabag-557e549db7932e9101f60bfda64238a235a0ce3b.zip
service call
-rw-r--r--src/Wallabag/ImportBundle/Controller/PocketController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/PocketController.php b/src/Wallabag/ImportBundle/Controller/PocketController.php
index 76d8417b..9602c282 100644
--- a/src/Wallabag/ImportBundle/Controller/PocketController.php
+++ b/src/Wallabag/ImportBundle/Controller/PocketController.php
@@ -21,7 +21,7 @@ class PocketController extends Controller
21 */ 21 */
22 public function authAction() 22 public function authAction()
23 { 23 {
24 $pocket = new PocketImport($this->get('security.token_storage'), $this->get('session'), $this->getDoctrine()->getManager(), $this->container->getParameter('pocket_consumer_key')); 24 $pocket = $this->get('wallabag_import.import.pocket_import');
25 $authUrl = $pocket->oAuthRequest($this->generateUrl('import', array(), true), $this->generateUrl('callbackpocket', array(), true)); 25 $authUrl = $pocket->oAuthRequest($this->generateUrl('import', array(), true), $this->generateUrl('callbackpocket', array(), true));
26 26
27 return $this->redirect($authUrl, 301); 27 return $this->redirect($authUrl, 301);
@@ -32,7 +32,7 @@ class PocketController extends Controller
32 */ 32 */
33 public function callbackAction() 33 public function callbackAction()
34 { 34 {
35 $pocket = new PocketImport($this->get('security.token_storage'), $this->get('session'), $this->getDoctrine()->getManager(), $this->container->getParameter('pocket_consumer_key')); 35 $pocket = $this->get('wallabag_import.import.pocket_import');
36 $accessToken = $pocket->oAuthAuthorize(); 36 $accessToken = $pocket->oAuthAuthorize();
37 $pocket->import($accessToken); 37 $pocket->import($accessToken);
38 38