Replace DI::apiResponse()->exit() with $this->response->exit()
This commit is contained in:
committed by
Hypolite Petovan
parent
2dc60cfd33
commit
a88cc8d5c8
@@ -64,6 +64,6 @@ class UpdateProfile extends BaseApi
|
||||
// "uid" is only needed for some internal stuff, so remove it from here
|
||||
unset($user_info['uid']);
|
||||
|
||||
DI::apiResponse()->exit('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
$this->response->exit('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,6 @@ class VerifyCredentials extends BaseApi
|
||||
// "uid" is only needed for some internal stuff, so remove it from here
|
||||
unset($user_info['uid']);
|
||||
|
||||
DI::apiResponse()->exit('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
$this->response->exit('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user