args['projectId']; $userId = $this->args['userId']; $event = $this->args['event']; $resource = $this->args['resource']; $userAgent = $this->args['userAgent']; $ip = $this->args['ip']; $data = $this->args['data']; $pdo = $register->get('db', true); $adapter = new Audit\Adapter\MySQL($pdo); $adapter->setNamespace('app_'.$projectId); $audit = new \Audit\Audit($adapter, $userId, 0, $userAgent, $ip, ''); $audit->log($event, $resource, $data); } public function tearDown() { // ... Remove environment for this job } }