args['projectId']; $userId = $this->args['userId']; $userName = $this->args['userName']; $userEmail = $this->args['userEmail']; $mode = $this->args['mode']; $event = $this->args['event']; $resource = $this->args['resource']; $userAgent = $this->args['userAgent']; $ip = $this->args['ip']; $data = $this->args['data']; $dbForProject = $this->getProjectDB($projectId); $audit = new Audit($dbForProject); $audit->log($userId, $event, $resource, $userAgent, $ip, '', [ 'userName' => $userName, 'userEmail' => $userEmail, 'mode' => $mode, 'data' => $data, ]); } public function shutdown(): void { // ... Remove environment for this job } }