aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2015-10-23 14:45:50 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-01-02 23:24:17 +0100
commitd51b38ed309c9aead938e8c8963c05c6d82b4ec2 (patch)
treef1d575776c8f6a97370fccdbb1ca02a680a4ffe0 /src/Wallabag/ImportBundle/Import
parent557e549db7932e9101f60bfda64238a235a0ce3b (diff)
downloadwallabag-d51b38ed309c9aead938e8c8963c05c6d82b4ec2.tar.gz
wallabag-d51b38ed309c9aead938e8c8963c05c6d82b4ec2.tar.zst
wallabag-d51b38ed309c9aead938e8c8963c05c6d82b4ec2.zip
create ImportController to list importers
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r--src/Wallabag/ImportBundle/Import/ImportInterface.php2
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/ImportInterface.php b/src/Wallabag/ImportBundle/Import/ImportInterface.php
index 88de3fa8..f07a120c 100644
--- a/src/Wallabag/ImportBundle/Import/ImportInterface.php
+++ b/src/Wallabag/ImportBundle/Import/ImportInterface.php
@@ -4,6 +4,8 @@ namespace Wallabag\ImportBundle\Import;
4 4
5interface ImportInterface 5interface ImportInterface
6{ 6{
7 public function getName();
8 public function getDescription();
7 public function oAuthRequest($redirectUri, $callbackUri); 9 public function oAuthRequest($redirectUri, $callbackUri);
8 public function oAuthAuthorize(); 10 public function oAuthAuthorize();
9 public function import($accessToken); 11 public function import($accessToken);
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index 413c9ccc..81af8e57 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -23,6 +23,16 @@ class PocketImport implements ImportInterface
23 $this->consumerKey = $consumerKey; 23 $this->consumerKey = $consumerKey;
24 } 24 }
25 25
26 public function getName()
27 {
28 return 'Pocket';
29 }
30
31 public function getDescription()
32 {
33 return 'This importer will import all your <a href="https://getpocket.com">Pocket</a> data.';
34 }
35
26 /** 36 /**
27 * Create a new Client. 37 * Create a new Client.
28 * 38 *