aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Resources
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-03 17:36:57 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 21:57:46 +0200
commitef75e1220ebb76a8df019d946460ad612759f0bb (patch)
tree100830464851d6834e1e24ccabca1961a862fcd8 /src/Wallabag/ImportBundle/Resources
parent87c9995b6c61a9f5cde3771bd4f9d44b5da26c43 (diff)
downloadwallabag-ef75e1220ebb76a8df019d946460ad612759f0bb.tar.gz
wallabag-ef75e1220ebb76a8df019d946460ad612759f0bb.tar.zst
wallabag-ef75e1220ebb76a8df019d946460ad612759f0bb.zip
Send every imported item to the queue
Instead of queing real Entry to process, we queue all the item to import from Pocket in a raw format. Then, the worker retrieve that information, find / create the entry and save it.
Diffstat (limited to 'src/Wallabag/ImportBundle/Resources')
-rw-r--r--src/Wallabag/ImportBundle/Resources/config/services.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml
index 60eb4e18..fe388b26 100644
--- a/src/Wallabag/ImportBundle/Resources/config/services.yml
+++ b/src/Wallabag/ImportBundle/Resources/config/services.yml
@@ -1,10 +1,11 @@
1services: 1services:
2 wallabag_import.consumer.entry: 2 wallabag_import.consumer.pocket:
3 class: Wallabag\ImportBundle\Component\AMPQ\EntryConsumer 3 class: Wallabag\ImportBundle\Consumer\AMPQ\PocketConsumer
4 arguments: 4 arguments:
5 - "@doctrine.orm.entity_manager" 5 - "@doctrine.orm.entity_manager"
6 - "@wallabag_core.entry_repository" 6 - "@wallabag_user.user_repository"
7 - "@wallabag_core.content_proxy" 7 - "@wallabag_import.pocket.import"
8 - "@logger"
8 9
9 wallabag_import.chain: 10 wallabag_import.chain:
10 class: Wallabag\ImportBundle\Import\ImportChain 11 class: Wallabag\ImportBundle\Import\ImportChain
@@ -21,11 +22,9 @@ services:
21 wallabag_import.pocket.import: 22 wallabag_import.pocket.import:
22 class: Wallabag\ImportBundle\Import\PocketImport 23 class: Wallabag\ImportBundle\Import\PocketImport
23 arguments: 24 arguments:
24 - "@security.token_storage"
25 - "@doctrine.orm.entity_manager" 25 - "@doctrine.orm.entity_manager"
26 - "@wallabag_core.content_proxy" 26 - "@wallabag_core.content_proxy"
27 - "@craue_config" 27 - "@craue_config"
28 - "@old_sound_rabbit_mq.wallabag_producer"
29 calls: 28 calls:
30 - [ setClient, [ "@wallabag_import.pocket.client" ] ] 29 - [ setClient, [ "@wallabag_import.pocket.client" ] ]
31 - [ setLogger, [ "@logger" ]] 30 - [ setLogger, [ "@logger" ]]