Exemplo n.º 1
0
 public function __construct(Client $predis, QueueMessageFactoryInterface $messageFactory, $queueId = null)
 {
     $this->predis = $predis;
     $this->messageFactory = $messageFactory;
     parent::__construct($queueId);
     // make sure the destruct method is called
     register_shutdown_function([$this, "__destruct"]);
 }
Exemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function setQueueId($queueId)
 {
     parent::setQueueId($queueId);
     $this->queueUrl = null;
 }
Exemplo n.º 3
0
 public function __construct(SocketFactory $socketFactory, QueueMessageFactoryInterface $messageFactory, $queueId = null)
 {
     $this->socketFactory = $socketFactory;
     $this->messageFactory = $messageFactory;
     parent::__construct($queueId);
 }