diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-24 15:24:18 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-02 23:27:41 +0100 |
commit | 7ec2897ee0ad190dcb9f77032d785f2f9661b754 (patch) | |
tree | 7f91eabb9d555628d0c2a1e5da8deb6fc2a41b3c /src/Wallabag/ImportBundle/Resources | |
parent | 0aa344dc247c77376fcbf2112191f9f8b3dfc846 (diff) | |
download | wallabag-7ec2897ee0ad190dcb9f77032d785f2f9661b754.tar.gz wallabag-7ec2897ee0ad190dcb9f77032d785f2f9661b754.tar.zst wallabag-7ec2897ee0ad190dcb9f77032d785f2f9661b754.zip |
First test on PocketImport
Giving ability to define the Client add abitliy to easliy test the import.
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index d77779eb..ab516ca5 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -6,3 +6,14 @@ services: | |||
6 | - "@session" | 6 | - "@session" |
7 | - "@doctrine.orm.entity_manager" | 7 | - "@doctrine.orm.entity_manager" |
8 | - %pocket_consumer_key% | 8 | - %pocket_consumer_key% |
9 | calls: | ||
10 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | ||
11 | |||
12 | wallabag_import.pocket.client: | ||
13 | class: GuzzleHttp\Client | ||
14 | arguments: | ||
15 | - | ||
16 | defaults: | ||
17 | headers: | ||
18 | content-type: "application/json" | ||
19 | X-Accept: "application/json" | ||