diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index ef8f9eb5..85bab0db 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -5,6 +5,7 @@ namespace Wallabag\ImportBundle\Import; | |||
5 | use Doctrine\ORM\EntityManager; | 5 | use Doctrine\ORM\EntityManager; |
6 | use GuzzleHttp\Client; | 6 | use GuzzleHttp\Client; |
7 | use Symfony\Component\HttpFoundation\Session\Session; | 7 | use Symfony\Component\HttpFoundation\Session\Session; |
8 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; | ||
8 | use Wallabag\CoreBundle\Entity\Entry; | 9 | use Wallabag\CoreBundle\Entity\Entry; |
9 | use Wallabag\CoreBundle\Entity\Tag; | 10 | use Wallabag\CoreBundle\Entity\Tag; |
10 | use Wallabag\CoreBundle\Tools\Utils; | 11 | use Wallabag\CoreBundle\Tools\Utils; |
@@ -18,7 +19,7 @@ class PocketImport implements ImportInterface | |||
18 | private $skippedEntries = 0; | 19 | private $skippedEntries = 0; |
19 | private $importedEntries = 0; | 20 | private $importedEntries = 0; |
20 | 21 | ||
21 | public function __construct($tokenStorage, Session $session, EntityManager $em, $consumerKey) | 22 | public function __construct(TokenStorageInterface $tokenStorage, Session $session, EntityManager $em, $consumerKey) |
22 | { | 23 | { |
23 | $this->user = $tokenStorage->getToken()->getUser(); | 24 | $this->user = $tokenStorage->getToken()->getUser(); |
24 | $this->session = $session; | 25 | $this->session = $session; |
@@ -26,11 +27,17 @@ class PocketImport implements ImportInterface | |||
26 | $this->consumerKey = $consumerKey; | 27 | $this->consumerKey = $consumerKey; |
27 | } | 28 | } |
28 | 29 | ||
30 | /** | ||
31 | * {@inheritdoc} | ||
32 | */ | ||
29 | public function getName() | 33 | public function getName() |
30 | { | 34 | { |
31 | return 'Pocket'; | 35 | return 'Pocket'; |
32 | } | 36 | } |
33 | 37 | ||
38 | /** | ||
39 | * {@inheritdoc} | ||
40 | */ | ||
34 | public function getDescription() | 41 | public function getDescription() |
35 | { | 42 | { |
36 | return 'This importer will import all your <a href="https://getpocket.com">Pocket</a> data.'; | 43 | return 'This importer will import all your <a href="https://getpocket.com">Pocket</a> data.'; |