diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-04 21:49:21 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-11 21:58:31 +0200 |
commit | c98db1b653b5dc8b701422190b02d9fbf10c4e68 (patch) | |
tree | 5f02de371264143a4e81231ad16f605435cb4d22 /src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php | |
parent | ef75e1220ebb76a8df019d946460ad612759f0bb (diff) | |
download | wallabag-c98db1b653b5dc8b701422190b02d9fbf10c4e68.tar.gz wallabag-c98db1b653b5dc8b701422190b02d9fbf10c4e68.tar.zst wallabag-c98db1b653b5dc8b701422190b02d9fbf10c4e68.zip |
Convert other imports to Rabbit
Diffstat (limited to 'src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php b/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php index c2a42165..063cddd9 100644 --- a/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php +++ b/src/Wallabag/ImportBundle/Controller/WallabagV2Controller.php | |||
@@ -12,7 +12,13 @@ class WallabagV2Controller extends WallabagController | |||
12 | */ | 12 | */ |
13 | protected function getImportService() | 13 | protected function getImportService() |
14 | { | 14 | { |
15 | return $this->get('wallabag_import.wallabag_v2.import'); | 15 | $service = $this->get('wallabag_import.wallabag_v2.import'); |
16 | |||
17 | if ($this->get('craue_config')->get('rabbitmq')) { | ||
18 | $service->setRabbitmqProducer($this->get('old_sound_rabbit_mq.import_wallabag_v2_producer')); | ||
19 | } | ||
20 | |||
21 | return $service; | ||
16 | } | 22 | } |
17 | 23 | ||
18 | /** | 24 | /** |