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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user