diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-21 08:53:09 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-31 14:48:26 +0100 |
commit | 63e40f2d7c4074aff0be587c828eb511a6b7c878 (patch) | |
tree | 038959b20e15c60841f8f3584c99068f52460939 /src/Wallabag/ImportBundle/Import | |
parent | 26975877d76a99f6a3153d3d3b4fc6c9f32687bc (diff) | |
download | wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.tar.gz wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.tar.zst wallabag-63e40f2d7c4074aff0be587c828eb511a6b7c878.zip |
Add CraueConfig for internal settings
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 72b9047c..0463a739 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -11,6 +11,7 @@ use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInt | |||
11 | use Wallabag\CoreBundle\Entity\Entry; | 11 | use Wallabag\CoreBundle\Entity\Entry; |
12 | use Wallabag\CoreBundle\Entity\Tag; | 12 | use Wallabag\CoreBundle\Entity\Tag; |
13 | use Wallabag\CoreBundle\Helper\ContentProxy; | 13 | use Wallabag\CoreBundle\Helper\ContentProxy; |
14 | use Craue\ConfigBundle\Util\Config; | ||
14 | 15 | ||
15 | class PocketImport implements ImportInterface | 16 | class PocketImport implements ImportInterface |
16 | { | 17 | { |
@@ -25,12 +26,12 @@ class PocketImport implements ImportInterface | |||
25 | protected $accessToken; | 26 | protected $accessToken; |
26 | private $translator; | 27 | private $translator; |
27 | 28 | ||
28 | public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, $consumerKey) | 29 | public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig) |
29 | { | 30 | { |
30 | $this->user = $tokenStorage->getToken()->getUser(); | 31 | $this->user = $tokenStorage->getToken()->getUser(); |
31 | $this->em = $em; | 32 | $this->em = $em; |
32 | $this->contentProxy = $contentProxy; | 33 | $this->contentProxy = $contentProxy; |
33 | $this->consumerKey = $consumerKey; | 34 | $this->consumerKey = $craueConfig->get('pocket_consumer_key'); |
34 | $this->logger = new NullLogger(); | 35 | $this->logger = new NullLogger(); |
35 | } | 36 | } |
36 | 37 | ||