forked from wallabag/wallabag
Replace RabbitMQ injection with CraueConfiguration
This commit is contained in:
committed by
Jeremy Benoist
parent
e31ee20dd7
commit
40d2a29443
@ -25,14 +25,14 @@ class PocketImport extends AbstractImport
|
||||
private $producer;
|
||||
private $rabbitMQ;
|
||||
|
||||
public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig, $rabbitMQ, Producer $producer)
|
||||
public function __construct(TokenStorageInterface $tokenStorage, EntityManager $em, ContentProxy $contentProxy, Config $craueConfig, Producer $producer)
|
||||
{
|
||||
$this->user = $tokenStorage->getToken()->getUser();
|
||||
$this->em = $em;
|
||||
$this->contentProxy = $contentProxy;
|
||||
$this->consumerKey = $craueConfig->get('pocket_consumer_key');
|
||||
$this->logger = new NullLogger();
|
||||
$this->rabbitMQ = $rabbitMQ;
|
||||
$this->rabbitMQ = $craueConfig->get('rabbitmq');
|
||||
$this->producer = $producer;
|
||||
}
|
||||
|
||||
|
||||
@ -25,7 +25,6 @@ services:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
- "@wallabag_core.content_proxy"
|
||||
- "@craue_config"
|
||||
- %rabbitmq%
|
||||
- "@old_sound_rabbit_mq.wallabag_producer"
|
||||
calls:
|
||||
- [ setClient, [ "@wallabag_import.pocket.client" ] ]
|
||||
|
||||
Reference in New Issue
Block a user