1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-21 18:11:10 +00:00

Convert other imports to Rabbit

This commit is contained in:
Jeremy Benoist 2016-09-04 21:49:21 +02:00
parent ef75e1220e
commit c98db1b653
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
14 changed files with 334 additions and 263 deletions

View file

@ -12,7 +12,13 @@ class WallabagV2Controller extends WallabagController
*/
protected function getImportService()
{
return $this->get('wallabag_import.wallabag_v2.import');
$service = $this->get('wallabag_import.wallabag_v2.import');
if ($this->get('craue_config')->get('rabbitmq')) {
$service->setRabbitmqProducer($this->get('old_sound_rabbit_mq.import_wallabag_v2_producer'));
}
return $service;
}
/**