]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ImportBundle/Resources/config/services.yml
Merge pull request #1612 from wallabag/v2-settings-page
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Resources / config / services.yml
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 - "@craue_config"
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 }
35
36 wallabag_import.wallabag_v2.import:
37 class: Wallabag\ImportBundle\Import\WallabagV2Import
38 arguments:
39 - "@doctrine.orm.entity_manager"
40 calls:
41 - [ setLogger, [ "@logger" ]]
42 tags:
43 - { name: wallabag_import.import, alias: wallabag_v2 }