]>
Commit | Line | Data |
---|---|---|
ff7b031d | 1 | services: |
56c778b4 NL |
2 | wallabag_import.consumer.entry: |
3 | class: Wallabag\ImportBundle\Component\AMPQ\EntryConsumer | |
4 | arguments: | |
5 | - "@doctrine.orm.entity_manager" | |
6 | - "@wallabag_core.entry_repository" | |
7 | - "@wallabag_core.content_proxy" | |
8 | ||
7019c7cf JB |
9 | wallabag_import.chain: |
10 | class: Wallabag\ImportBundle\Import\ImportChain | |
11 | ||
7ec2897e JB |
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" | |
252ebd60 JB |
20 | |
21 | wallabag_import.pocket.import: | |
22 | class: Wallabag\ImportBundle\Import\PocketImport | |
23 | arguments: | |
24 | - "@security.token_storage" | |
25 | - "@doctrine.orm.entity_manager" | |
26 | - "@wallabag_core.content_proxy" | |
63e40f2d | 27 | - "@craue_config" |
56c778b4 NL |
28 | - %rabbitmq% |
29 | - "@old_sound_rabbit_mq.wallabag_producer" | |
252ebd60 JB |
30 | calls: |
31 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | |
32 | - [ setLogger, [ "@logger" ]] | |
7019c7cf JB |
33 | tags: |
34 | - { name: wallabag_import.import, alias: pocket } | |
b1d05721 JB |
35 | |
36 | wallabag_import.wallabag_v1.import: | |
37 | class: Wallabag\ImportBundle\Import\WallabagV1Import | |
38 | arguments: | |
39 | - "@doctrine.orm.entity_manager" | |
0783c99a | 40 | - "@wallabag_core.content_proxy" |
b1d05721 JB |
41 | calls: |
42 | - [ setLogger, [ "@logger" ]] | |
7019c7cf JB |
43 | tags: |
44 | - { name: wallabag_import.import, alias: wallabag_v1 } | |
6785f4aa NL |
45 | |
46 | wallabag_import.wallabag_v2.import: | |
47 | class: Wallabag\ImportBundle\Import\WallabagV2Import | |
48 | arguments: | |
49 | - "@doctrine.orm.entity_manager" | |
0783c99a | 50 | - "@wallabag_core.content_proxy" |
6785f4aa NL |
51 | calls: |
52 | - [ setLogger, [ "@logger" ]] | |
53 | tags: | |
54 | - { name: wallabag_import.import, alias: wallabag_v2 } | |
03e3753f JB |
55 | |
56 | wallabag_import.readability.import: | |
57 | class: Wallabag\ImportBundle\Import\ReadabilityImport | |
58 | arguments: | |
59 | - "@doctrine.orm.entity_manager" | |
60 | - "@wallabag_core.content_proxy" | |
61 | calls: | |
62 | - [ setLogger, [ "@logger" ]] | |
63 | tags: | |
64 | - { name: wallabag_import.import, alias: readability } |