diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-15 21:30:55 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-09-11 21:57:09 +0200 |
commit | 40d2a29443df8ef6fdf1f2d09b5ba8808543c245 (patch) | |
tree | 2bc78f398472867864adddcf03bf62ac0c390083 /src/Wallabag/ImportBundle | |
parent | e31ee20dd7ed0f92e5c41c35a0876529d0b03436 (diff) | |
download | wallabag-40d2a29443df8ef6fdf1f2d09b5ba8808543c245.tar.gz wallabag-40d2a29443df8ef6fdf1f2d09b5ba8808543c245.tar.zst wallabag-40d2a29443df8ef6fdf1f2d09b5ba8808543c245.zip |
Replace RabbitMQ injection with CraueConfiguration
Diffstat (limited to 'src/Wallabag/ImportBundle')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 4 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Resources/config/services.yml | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index b02894f0..7d1c0c61 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -25,14 +25,14 @@ class PocketImport extends AbstractImport | |||
25 | private $producer; | 25 | private $producer; |
26 | private $rabbitMQ; | 26 | private $rabbitMQ; |
27 | 27 | ||
28 | public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig, $rabbitMQ, Producer $producer) | 28 | public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig, Producer $producer) |
29 | { | 29 | { |
30 | $this->user = $tokenStorage->getToken()->getUser(); | 30 | $this->user = $tokenStorage->getToken()->getUser(); |
31 | $this->em = $em; | 31 | $this->em = $em; |
32 | $this->contentProxy = $contentProxy; | 32 | $this->contentProxy = $contentProxy; |
33 | $this->consumerKey = $craueConfig->get('pocket_consumer_key'); | 33 | $this->consumerKey = $craueConfig->get('pocket_consumer_key'); |
34 | $this->logger = new NullLogger(); | 34 | $this->logger = new NullLogger(); |
35 | $this->rabbitMQ = $rabbitMQ; | 35 | $this->rabbitMQ = $craueConfig->get('rabbitmq'); |
36 | $this->producer = $producer; | 36 | $this->producer = $producer; |
37 | } | 37 | } |
38 | 38 | ||
diff --git a/src/Wallabag/ImportBundle/Resources/config/services.yml b/src/Wallabag/ImportBundle/Resources/config/services.yml index 7ea54162..60eb4e18 100644 --- a/src/Wallabag/ImportBundle/Resources/config/services.yml +++ b/src/Wallabag/ImportBundle/Resources/config/services.yml | |||
@@ -25,7 +25,6 @@ services: | |||
25 | - "@doctrine.orm.entity_manager" | 25 | - "@doctrine.orm.entity_manager" |
26 | - "@wallabag_core.content_proxy" | 26 | - "@wallabag_core.content_proxy" |
27 | - "@craue_config" | 27 | - "@craue_config" |
28 | - %rabbitmq% | ||
29 | - "@old_sound_rabbit_mq.wallabag_producer" | 28 | - "@old_sound_rabbit_mq.wallabag_producer" |
30 | calls: | 29 | calls: |
31 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] | 30 | - [ setClient, [ "@wallabag_import.pocket.client" ] ] |