diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-09-05 11:36:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-05 11:36:03 +0200 |
commit | e3a5767a29e75ea360dcadba6bc342720ed44133 (patch) | |
tree | a699e86c155dead0ab3dc7a2ede8165dace8b484 /lib | |
parent | 5f1fbf499b754e42022af4e7ea0ddbbeecafcb40 (diff) | |
parent | 3b2beeaa14659d9e7e3c77c77dc134c7029980ef (diff) | |
download | nextcloud-server-e3a5767a29e75ea360dcadba6bc342720ed44133.tar.gz nextcloud-server-e3a5767a29e75ea360dcadba6bc342720ed44133.zip |
Merge pull request #1269 from nextcloud/deprecate_ocs_response
Deprecate OCSRespone
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/AppFramework/Http/OCSResponse.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/OCSResponse.php b/lib/public/AppFramework/Http/OCSResponse.php index 0fb0f9678d0..cfda8ea4f75 100644 --- a/lib/public/AppFramework/Http/OCSResponse.php +++ b/lib/public/AppFramework/Http/OCSResponse.php @@ -29,11 +29,10 @@ namespace OCP\AppFramework\Http; -use OCP\AppFramework\Http; - /** * A renderer for OCS responses * @since 8.1.0 + * @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController */ class OCSResponse extends Response { @@ -53,6 +52,7 @@ class OCSResponse extends Response { * @param int|string $itemscount * @param int|string $itemsperpage * @since 8.1.0 + * @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController */ public function __construct($format, $statuscode, $message, $data=[], $itemscount='', @@ -79,6 +79,7 @@ class OCSResponse extends Response { /** * @return string * @since 8.1.0 + * @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController */ public function render() { $r = new \OC_OCS_Result($this->data, $this->statuscode, $this->message); |