diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-01-07 22:15:08 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-01-07 22:15:08 +0100 |
commit | 39643c6b76d92d509b1af0228b6379d7fdce8a1c (patch) | |
tree | 931dceef7dbc8ae9911d01ded709d558417a6cdd /src/Wallabag/ImportBundle/Resources/config/services.yml | |
parent | 488a468e3e11ff0ab6284afe232bf0f7fa68a8eb (diff) | |
parent | b88cf91fc8371194df78e690983c61ea94f266cd (diff) | |
download | wallabag-39643c6b76d92d509b1af0228b6379d7fdce8a1c.tar.gz wallabag-39643c6b76d92d509b1af0228b6379d7fdce8a1c.tar.zst wallabag-39643c6b76d92d509b1af0228b6379d7fdce8a1c.zip |
Merge pull request #1493 from wallabag/v2-pocket-import2.0.0-alpha.1
v2 – 1st draft for Pocket import via API & Wallabag v1 import
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources/config/services.yml')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml new file mode 100644 index 00000000..e4dde100 --- /dev/null +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -0,0 +1,34 @@ | |||
1 | services: | ||
2 | wallabag_import.chain: | ||
3 | class: Wallabag\ImportBundle\Import\ImportChain | ||
4 | |||
5 | wallabag_import.pocket.client: | ||
6 | class: GuzzleHttp\Client | ||
7 | arguments: | ||
8 | - | ||
9 | defaults: | ||
10 | headers: | ||
11 | content-type: "application/json" | ||
12 | X-Accept: "application/json" | ||
13 | |||
14 | wallabag_import.pocket.import: | ||
15 | class: Wallabag\ImportBundle\Import\PocketImport | ||
16 | arguments: | ||
17 | - "@security.token_storage" | ||
18 | - "@doctrine.orm.entity_manager" | ||
19 | - "@wallabag_core.content_proxy" | ||
20 | - %pocket_consumer_key% | ||
21 | calls: | ||
22 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | ||
23 | - [ setLogger, [ "@logger" ]] | ||
24 | tags: | ||
25 | - { name: wallabag_import.import, alias: pocket } | ||
26 | |||
27 | wallabag_import.wallabag_v1.import: | ||
28 | class: Wallabag\ImportBundle\Import\WallabagV1Import | ||
29 | arguments: | ||
30 | - "@doctrine.orm.entity_manager" | ||
31 | calls: | ||
32 | - [ setLogger, [ "@logger" ]] | ||
33 | tags: | ||
34 | - { name: wallabag_import.import, alias: wallabag_v1 } | ||