Ejemplo n.º 1
0
 /**
  * Unserialize
  *
  * @return void
  */
 public function __wakeup()
 {
     $options = $this->_options['daemonOptions'];
     $this->_zendQueue = new ZendApi_Queue($options['host']);
     if (!$this->_zendQueue) {
         throw new Zend_Queue_Exception('Platform Job Queue connection failed');
     }
     if (!$this->_zendQueue->login($options['password'])) {
         throw new Zend_Queue_Exception('Job Queue login failed');
     }
 }
Ejemplo n.º 2
0
 /**
  * Unserialize
  *
  * @return void
  */
 public function __wakeup()
 {
     $options = $this->_options['daemonOptions'];
     $this->_zendQueue = new ZendApi_Queue($options['host']);
     if (!$this->_zendQueue) {
         require_once PHP_LIBRARY_PATH . 'Zend/Queue/Exception.php';
         throw new Zend_Queue_Exception('Platform Job Queue connection failed');
     }
     if (!$this->_zendQueue->login($options['password'])) {
         require_once PHP_LIBRARY_PATH . 'Zend/Queue/Exception.php';
         throw new Zend_Queue_Exception('Job Queue login failed');
     }
 }