/** * @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']); }