aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-09-09 21:02:03 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 21:58:56 +0200
commitb3437d58ae224121375c99e9288d8b808524e624 (patch)
tree94ce3446aed4396ba9304b8c97e421eba35e4edf /src/Wallabag/ImportBundle/Import
parent7f7531171f6e49110b5842f869e37c766a682473 (diff)
downloadwallabag-b3437d58ae224121375c99e9288d8b808524e624.tar.gz
wallabag-b3437d58ae224121375c99e9288d8b808524e624.tar.zst
wallabag-b3437d58ae224121375c99e9288d8b808524e624.zip
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` -
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r--src/Wallabag/ImportBundle/Import/AbstractImport.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Import/AbstractImport.php b/src/Wallabag/ImportBundle/Import/AbstractImport.php
index 39befa7b..4cd8e846 100644
--- a/src/Wallabag/ImportBundle/Import/AbstractImport.php
+++ b/src/Wallabag/ImportBundle/Import/AbstractImport.php
@@ -9,7 +9,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy;
9use Wallabag\CoreBundle\Entity\Entry; 9use Wallabag\CoreBundle\Entity\Entry;
10use Wallabag\CoreBundle\Entity\Tag; 10use Wallabag\CoreBundle\Entity\Tag;
11use Wallabag\UserBundle\Entity\User; 11use Wallabag\UserBundle\Entity\User;
12use OldSound\RabbitMqBundle\RabbitMq\Producer; 12use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface;
13 13
14abstract class AbstractImport implements ImportInterface 14abstract class AbstractImport implements ImportInterface
15{ 15{
@@ -35,12 +35,12 @@ abstract class AbstractImport implements ImportInterface
35 } 35 }
36 36
37 /** 37 /**
38 * Set RabbitMQ Producer to send each entry to a queue. 38 * Set RabbitMQ/Redis Producer to send each entry to a queue.
39 * This method should be called when user has enabled RabbitMQ. 39 * This method should be called when user has enabled RabbitMQ.
40 * 40 *
41 * @param Producer $producer 41 * @param ProducerInterface $producer
42 */ 42 */
43 public function setRabbitmqProducer(Producer $producer) 43 public function setProducer(ProducerInterface $producer)
44 { 44 {
45 $this->producer = $producer; 45 $this->producer = $producer;
46 } 46 }