예제 #1
0
 /**
  * @param array|string  $options
  * @param LoopInterface $loop
  *
  */
 public function __construct($options, LoopInterface $loop = null)
 {
     $this->options = $options;
     if ($loop !== null) {
         $this->loop = $loop;
         Resque::setEventLoop($loop);
     }
     parent::__construct($options['queue']);
 }