First test on PocketImport

Giving ability to define the Client add abitliy to easliy test the import.
This commit is contained in:
Jeremy Benoist
2015-12-24 15:24:18 +01:00
parent 0aa344dc24
commit 7ec2897ee0
4 changed files with 210 additions and 85 deletions

View File

@ -6,3 +6,14 @@ services:
- "@session"
- "@doctrine.orm.entity_manager"
- %pocket_consumer_key%
calls:
- [ setClient, [ "@wallabag_import.pocket.client" ] ]
wallabag_import.pocket.client:
class: GuzzleHttp\Client
arguments:
-
defaults:
headers:
content-type: "application/json"
X-Accept: "application/json"