Replace DI::apiResponse()->exit() with $this->response->exit()

This commit is contained in:
Philipp 2021-11-28 15:05:42 +01:00 committed by Hypolite Petovan
parent 2dc60cfd33
commit a88cc8d5c8
22 changed files with 26 additions and 26 deletions

View file

@ -51,6 +51,6 @@ class Lookup extends BaseApi
throw new NotFoundException();
}
DI::apiResponse()->exit('users', ['user' => $users], $this->parameters['extension'] ?? null);
$this->response->exit('users', ['user' => $users], $this->parameters['extension'] ?? null);
}
}

View file

@ -69,6 +69,6 @@ class Search extends BaseApi
throw new BadRequestException('No search term specified.');
}
DI::apiResponse()->exit('users', ['user' => $userlist], $this->parameters['extension'] ?? null);
$this->response->exit('users', ['user' => $userlist], $this->parameters['extension'] ?? null);
}
}

View file

@ -48,6 +48,6 @@ class Show 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);
}
}