Пример #1
0
 /**
  * Initialize our connection and subscribe to all the queues
  * we're going to need to handle... If multiple queue servers
  * are configured for failover, we'll listen to all of them.
  *
  * Side effects: in multi-site mode, may reset site configuration.
  *
  * @param IoMaster $master process/event controller
  * @return bool return false on failure
  */
 public function start($master)
 {
     parent::start($master);
     $this->_connectAll();
     foreach ($this->cons as $i => $con) {
         if ($con) {
             $this->doSubscribe($con);
             $this->begin($i);
         }
     }
     return true;
 }