aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-05 10:51:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-05 10:51:19 +0200
commit3b2beeaa14659d9e7e3c77c77dc134c7029980ef (patch)
tree12234d73f0ef83032ebeddf8a616126a8dacef7b /lib/public
parent8b484eedf029b8e1a9dcef0efb09db381888c4b0 (diff)
downloadnextcloud-server-3b2beeaa14659d9e7e3c77c77dc134c7029980ef.tar.gz
nextcloud-server-3b2beeaa14659d9e7e3c77c77dc134c7029980ef.zip
Deprecate OCSRespone
The OCSResponse should not be used by apps. They should extend the OCSController and use normal DataResponses instead.
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/AppFramework/Http/OCSResponse.php5
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);