diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-03 15:10:42 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-03 20:54:32 +0100 |
commit | cc744740b790a72e2d5c6b07814dadb5b58014fb (patch) | |
tree | 3ce5db818feacccfecb81d98d7ecaa11b7e11336 /lib/private/Remote | |
parent | 0829fea5e7f9a81a69599c5df7c75b997055e5ba (diff) | |
download | nextcloud-server-cc744740b790a72e2d5c6b07814dadb5b58014fb.tar.gz nextcloud-server-cc744740b790a72e2d5c6b07814dadb5b58014fb.zip |
Remove deprecated \OCP\API
Time to remove this forgood now.
Remaining constant moved over
The world is a tiny bit better
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Remote')
-rw-r--r-- | lib/private/Remote/Api/OCS.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Remote/Api/OCS.php b/lib/private/Remote/Api/OCS.php index 770dce3545f..d6bed57f561 100644 --- a/lib/private/Remote/Api/OCS.php +++ b/lib/private/Remote/Api/OCS.php @@ -27,7 +27,7 @@ namespace OC\Remote\Api; use GuzzleHttp\Exception\ClientException; use OC\ForbiddenException; use OC\Remote\User; -use OCP\API; +use OCP\AppFramework\OCSController; use OCP\Remote\Api\ICapabilitiesApi; use OCP\Remote\Api\IUserApi; @@ -58,10 +58,10 @@ class OCS extends ApiBase implements ICapabilitiesApi, IUserApi { if (!isset($response['ocs']) || !isset($response['ocs']['meta'])) { throw new \Exception('Invalid ocs response'); } - if ($response['ocs']['meta']['statuscode'] === API::RESPOND_UNAUTHORISED) { + if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_UNAUTHORISED) { throw new ForbiddenException(); } - if ($response['ocs']['meta']['statuscode'] === API::RESPOND_NOT_FOUND) { + if ($response['ocs']['meta']['statuscode'] === OCSController::RESPOND_NOT_FOUND) { throw new NotFoundException(); } if ($response['ocs']['meta']['status'] !== 'ok') { |