]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/ImportBundle/Controller/PocketController.php
Send every imported item to the queue
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 3 Sep 2016 15:36:57 +0000 (17:36 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 11 Sep 2016 19:57:46 +0000 (21:57 +0200)
commitef75e1220ebb76a8df019d946460ad612759f0bb
tree100830464851d6834e1e24ccabca1961a862fcd8
parent87c9995b6c61a9f5cde3771bd4f9d44b5da26c43
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.
app/config/config.yml
app/config/parameters.yml.dist
src/Wallabag/ImportBundle/Component/AMPQ/EntryConsumer.php [deleted file]
src/Wallabag/ImportBundle/Consumer/AMPQ/PocketConsumer.php [new file with mode: 0644]
src/Wallabag/ImportBundle/Controller/PocketController.php
src/Wallabag/ImportBundle/Import/PocketImport.php
src/Wallabag/ImportBundle/Resources/config/services.yml
src/Wallabag/UserBundle/Resources/config/services.yml
tests/Wallabag/ImportBundle/Import/PocketImportTest.php