Exemplo n.º 1
0
 public function __construct($id, $directory, array $config = array())
 {
     $this->directory = $directory;
     parent::__construct($id, $config);
     if (!array_key_exists('skip_shutdown_release', $config) || $config['skip_shutdown_release'] == false) {
         register_shutdown_function(array($this, 'releaseUnfinishedJobs'));
     }
 }
Exemplo n.º 2
0
 public function __construct($id, \Predis\ClientInterface $predis, $queueKey, array $config = array())
 {
     $this->predis = $predis;
     $this->queueKey = $queueKey;
     parent::__construct($id, $config);
 }
Exemplo n.º 3
0
 public function __construct($id, \Pheanstalk_Pheanstalk $pheanstalk, $tube, array $config = array())
 {
     $this->pheanstalk = $pheanstalk;
     $this->tube = $tube;
     parent::__construct($id, $config);
 }
Exemplo n.º 4
0
 public function __construct($id, \IronMQ $ironMQ, $queue_name, array $config = array())
 {
     $this->ironMQ = $ironMQ;
     $this->queue_name = $queue_name;
     parent::__construct($id, $config);
 }