Example #1
0
 /**
  * Creates a new RabbitConnector
  *
  * @param AMQPConnection $amqp
  * @param boolean        $persistent
  */
 public function __construct(AMQPConnection $amqp, $persistent = true)
 {
     $this->amqp = $amqp;
     $this->persistent = $persistent;
     $this->regenerateChannel();
     parent::__construct();
 }
Example #2
0
 /**
  * Creates a new IronConnector
  *
  * @param IronMQ $iron
  */
 public function __construct(\IronMQ $iron)
 {
     $this->iron = $iron;
     parent::__construct();
 }
Example #3
0
 /**
  * Creates a new BeanstalkdConnector
  *
  * @param PheanstalkInterface $pheanstalk
  */
 public function __construct(PheanstalkInterface $pheanstalk)
 {
     $this->pheanstalk = $pheanstalk;
     parent::__construct();
 }