aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/PocketImport.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-06 06:34:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-01-07 21:00:04 +0100
commitb88cf91fc8371194df78e690983c61ea94f266cd (patch)
treeea9d934eb7a593de8cd69ea28e014a44702b23c7 /src/Wallabag/ImportBundle/Import/PocketImport.php
parentd1af8ad4dbf7f3ce5170655c2fa8403406283039 (diff)
downloadwallabag-b88cf91fc8371194df78e690983c61ea94f266cd.tar.gz
wallabag-b88cf91fc8371194df78e690983c61ea94f266cd.tar.zst
wallabag-b88cf91fc8371194df78e690983c61ea94f266cd.zip
updated tests
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index 9b82720a..cdcec1e2 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -11,7 +11,6 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt
11use Wallabag\CoreBundle\Entity\Entry; 11use Wallabag\CoreBundle\Entity\Entry;
12use Wallabag\CoreBundle\Entity\Tag; 12use Wallabag\CoreBundle\Entity\Tag;
13use Wallabag\CoreBundle\Helper\ContentProxy; 13use Wallabag\CoreBundle\Helper\ContentProxy;
14use Symfony\Component\Translation\TranslatorInterface;
15 14
16class PocketImport implements ImportInterface 15class PocketImport implements ImportInterface
17{ 16{
@@ -26,14 +25,13 @@ class PocketImport implements ImportInterface
26 protected $accessToken; 25 protected $accessToken;
27 private $translator; 26 private $translator;
28 27
29 public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, $consumerKey, TranslatorInterface $translator) 28 public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, $consumerKey)
30 { 29 {
31 $this->user = $tokenStorage->getToken()->getUser(); 30 $this->user = $tokenStorage->getToken()->getUser();
32 $this->em = $em; 31 $this->em = $em;
33 $this->contentProxy = $contentProxy; 32 $this->contentProxy = $contentProxy;
34 $this->consumerKey = $consumerKey; 33 $this->consumerKey = $consumerKey;
35 $this->logger = new NullLogger(); 34 $this->logger = new NullLogger();
36 $this->translator = $translator;
37 } 35 }
38 36
39 public function setLogger(LoggerInterface $logger) 37 public function setLogger(LoggerInterface $logger)
@@ -62,7 +60,7 @@ class PocketImport implements ImportInterface
62 */ 60 */
63 public function getDescription() 61 public function getDescription()
64 { 62 {
65 return $this->translator->trans("This importer will import all your <a href=\"https://getpocket.com\">Pocket</a> data. Pocket doesn't allow us to retrieve content from their service, so the readable content of each article will be re-fetched by wallabag."); 63 return 'This importer will import all your Pocket data. Pocket doesn\'t allow us to retrieve content from their service, so the readable content of each article will be re-fetched by wallabag.';
66 } 64 }
67 65
68 /** 66 /**