diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-03 21:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 21:57:34 +0100 |
commit | 5325c3002cb45b6b244d0df7c74ea5a8bbb6ee02 (patch) | |
tree | dba66ff928b43e9fc240943395e0b5a3ae74c04c /lib/public | |
parent | a58b4ceaabf88aea83c24a5555e8addb28634ded (diff) | |
parent | cc744740b790a72e2d5c6b07814dadb5b58014fb (diff) | |
download | nextcloud-server-5325c3002cb45b6b244d0df7c74ea5a8bbb6ee02.tar.gz nextcloud-server-5325c3002cb45b6b244d0df7c74ea5a8bbb6ee02.zip |
Merge pull request #25917 from nextcloud/techdept/kill_deprecated/ocp_api
Remove deprecated \OCP\API
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/API.php | 52 | ||||
-rw-r--r-- | lib/public/AppFramework/OCSController.php | 4 |
2 files changed, 4 insertions, 52 deletions
diff --git a/lib/public/API.php b/lib/public/API.php deleted file mode 100644 index 65a0704d51c..00000000000 --- a/lib/public/API.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Christoph Wurst <christoph@winzerhof-wurst.at> - * @author Joas Schilling <coding@schilljs.com> - * @author Morris Jobke <hey@morrisjobke.de> - * @author Roeland Jago Douma <roeland@famdouma.nl> - * @author Tom Needham <tom@owncloud.com> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ - -/** - * Public interface of ownCloud for apps to use. - * API Class - * - */ - -// use OCP namespace for all classes that are considered public. -// This means that they should be used by apps instead of the internal ownCloud classes - -namespace OCP; - -/** - * This class provides functions to manage apps in ownCloud - * @since 5.0.0 - * @deprecated 9.1.0 Use the AppFramework - */ -class API { - /** - * API Response Codes - * @since 8.1.0 - */ - public const RESPOND_UNAUTHORISED = 997; - public const RESPOND_SERVER_ERROR = 996; - public const RESPOND_NOT_FOUND = 998; - public const RESPOND_UNKNOWN_ERROR = 999; -} diff --git a/lib/public/AppFramework/OCSController.php b/lib/public/AppFramework/OCSController.php index d18ab04fae8..422195f6b24 100644 --- a/lib/public/AppFramework/OCSController.php +++ b/lib/public/AppFramework/OCSController.php @@ -42,6 +42,10 @@ use OCP\IRequest; * @since 8.1.0 */ abstract class OCSController extends ApiController { + public const RESPOND_UNAUTHORISED = 997; + public const RESPOND_SERVER_ERROR = 996; + public const RESPOND_NOT_FOUND = 998; + public const RESPOND_UNKNOWN_ERROR = 999; /** @var int */ private $ocsVersion; |