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

@ -9,7 +9,7 @@ use Wallabag\CoreBundle\Helper\ContentProxy;
use Wallabag\CoreBundle\Entity\Entry;
use Wallabag\CoreBundle\Entity\Tag;
use Wallabag\UserBundle\Entity\User;
use OldSound\RabbitMqBundle\RabbitMq\Producer;
use OldSound\RabbitMqBundle\RabbitMq\ProducerInterface;
abstract class AbstractImport implements ImportInterface
{
@ -35,12 +35,12 @@ abstract class AbstractImport implements ImportInterface
}
/**
* Set RabbitMQ Producer to send each entry to a queue.
* Set RabbitMQ/Redis Producer to send each entry to a queue.
* This method should be called when user has enabled RabbitMQ.
*
* @param Producer $producer
* @param ProducerInterface $producer
*/
public function setRabbitmqProducer(Producer $producer)
public function setProducer(ProducerInterface $producer)
{
$this->producer = $producer;
}