/** * 入队列 */ public function init() { self::$_queue_handler = self::$_queue_handler === null ? \yii::$app->queue : self::$_queue_handler; if (!self::$_queue_handler instanceof \yii\queue\RedisQueue) { throw new InvalidConfigException('queue handler not exists!'); } parent::init(); }
public function init() { $this->_init(); parent::init(); }