Esempio n. 1
0
 /**
  * Wait for new jobs
  *
  * @access public
  * @throws LogicException
  */
 public function listen()
 {
     if ($this->queue === null) {
         throw new LogicException('No Queue Driver defined!');
     }
     while ($job = $this->queue->pull()) {
         JobHandler::getInstance($this->container)->executeJob($job);
         $this->queue->completed($job);
     }
 }