Enable Redis async import

- using javibravo/simpleue
- internal config value are now `import_with_redis` & `import_with_rabbit` which are more clear
- if both option are enable rabbit will be choosen
- services imports related to async are now splitted into 2 files: `redis.yml` & `rabbit.yml`
-
This commit is contained in:
Jeremy Benoist
2016-09-09 21:02:03 +02:00
parent 7f7531171f
commit b3437d58ae
28 changed files with 846 additions and 68 deletions

View File

@ -0,0 +1,30 @@
# RabbitMQ stuff
services:
wallabag_import.consumer.ampq.pocket:
class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
arguments:
- "@doctrine.orm.entity_manager"
- "@wallabag_user.user_repository"
- "@wallabag_import.pocket.import"
- "@logger"
wallabag_import.consumer.ampq.readability:
class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
arguments:
- "@doctrine.orm.entity_manager"
- "@wallabag_user.user_repository"
- "@wallabag_import.readability.import"
- "@logger"
wallabag_import.consumer.ampq.wallabag_v1:
class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
arguments:
- "@doctrine.orm.entity_manager"
- "@wallabag_user.user_repository"
- "@wallabag_import.wallabag_v1.import"
- "@logger"
wallabag_import.consumer.ampq.wallabag_v2:
class: Wallabag\ImportBundle\Consumer\AMPQEntryConsumer
arguments:
- "@doctrine.orm.entity_manager"
- "@wallabag_user.user_repository"
- "@wallabag_import.wallabag_v2.import"
- "@logger"