diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources/config')
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index ab516ca5..f421821c 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -1,14 +1,4 @@ | |||
1 | services: | 1 | services: |
2 | wallabag_import.pocket.import: | ||
3 | class: Wallabag\ImportBundle\Import\PocketImport | ||
4 | arguments: | ||
5 | - "@security.token_storage" | ||
6 | - "@session" | ||
7 | - "@doctrine.orm.entity_manager" | ||
8 | - %pocket_consumer_key% | ||
9 | calls: | ||
10 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | ||
11 | |||
12 | wallabag_import.pocket.client: | 2 | wallabag_import.pocket.client: |
13 | class: GuzzleHttp\Client | 3 | class: GuzzleHttp\Client |
14 | arguments: | 4 | arguments: |
@@ -17,3 +7,14 @@ services: | |||
17 | headers: | 7 | headers: |
18 | content-type: "application/json" | 8 | content-type: "application/json" |
19 | X-Accept: "application/json" | 9 | X-Accept: "application/json" |
10 | |||
11 | wallabag_import.pocket.import: | ||
12 | class: Wallabag\ImportBundle\Import\PocketImport | ||
13 | arguments: | ||
14 | - "@security.token_storage" | ||
15 | - "@doctrine.orm.entity_manager" | ||
16 | - "@wallabag_core.content_proxy" | ||
17 | - %pocket_consumer_key% | ||
18 | calls: | ||
19 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | ||
20 | - [ setLogger, [ "@logger" ]] | ||