diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-01-28 06:10:26 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-28 11:42:27 +0200 |
commit | 448d99f84e93697ce49ec31224addb1da1a37a9f (patch) | |
tree | dac85bc07ca0e6cf253d90b859811eaff28a4bd4 /src/Wallabag/ImportBundle/Import | |
parent | 1048c9c4a811821b00cc04bfec905bebcc22bac4 (diff) | |
download | wallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.tar.gz wallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.tar.zst wallabag-448d99f84e93697ce49ec31224addb1da1a37a9f.zip |
CS
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index 9467fae2..b35a561b 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -5,12 +5,12 @@ namespace Wallabag\ImportBundle\Import; | |||
5 | use Http\Client\Common\HttpMethodsClient; | 5 | use Http\Client\Common\HttpMethodsClient; |
6 | use Http\Client\Common\Plugin\ErrorPlugin; | 6 | use Http\Client\Common\Plugin\ErrorPlugin; |
7 | use Http\Client\Common\PluginClient; | 7 | use Http\Client\Common\PluginClient; |
8 | use Http\Client\Exception\RequestException; | ||
8 | use Http\Client\HttpClient; | 9 | use Http\Client\HttpClient; |
9 | use Http\Discovery\MessageFactoryDiscovery; | 10 | use Http\Discovery\MessageFactoryDiscovery; |
10 | use Http\Message\MessageFactory; | 11 | use Http\Message\MessageFactory; |
11 | use Http\Client\Exception\RequestException; | ||
12 | use Wallabag\CoreBundle\Entity\Entry; | ||
13 | use Psr\Http\Message\ResponseInterface; | 12 | use Psr\Http\Message\ResponseInterface; |
13 | use Wallabag\CoreBundle\Entity\Entry; | ||
14 | 14 | ||
15 | class PocketImport extends AbstractImport | 15 | class PocketImport extends AbstractImport |
16 | { | 16 | { |
@@ -88,7 +88,6 @@ class PocketImport extends AbstractImport | |||
88 | */ | 88 | */ |
89 | public function authorize($code) | 89 | public function authorize($code) |
90 | { | 90 | { |
91 | |||
92 | try { | 91 | try { |
93 | $response = $this->client->post('https://getpocket.com/v3/oauth/authorize', [], json_encode([ | 92 | $response = $this->client->post('https://getpocket.com/v3/oauth/authorize', [], json_encode([ |
94 | 'consumer_key' => $this->user->getConfig()->getPocketConsumerKey(), | 93 | 'consumer_key' => $this->user->getConfig()->getPocketConsumerKey(), |
@@ -153,7 +152,7 @@ class PocketImport extends AbstractImport | |||
153 | /** | 152 | /** |
154 | * Set the Http client. | 153 | * Set the Http client. |
155 | * | 154 | * |
156 | * @param HttpClient $client | 155 | * @param HttpClient $client |
157 | * @param MessageFactory|null $messageFactory | 156 | * @param MessageFactory|null $messageFactory |
158 | */ | 157 | */ |
159 | public function setClient(HttpClient $client, MessageFactory $messageFactory = null) | 158 | public function setClient(HttpClient $client, MessageFactory $messageFactory = null) |