yii2 - yii2 queue - save to db and log not working within curl job
问题 I am using https://github.com/yiisoft/yii2-queue I have function in execute method in queue class like: $this->RegisterDomains($available,$registrar->end_point, $this->request_id,$model->user_id,$registrar->api_key); and the registerDomains function looks like this: public function RegisterDomains($available,$end_point,$request_id,$user_id,$api_key) { $model = CatchDomains::find()->where(['request_id'=>$request_id])->one(); $PathToLog = 'runtime/domaincatch'; if(!(is_array($available['domain'