Skip to content

Commit

Permalink
Deprecate OCSRespone
Browse files Browse the repository at this point in the history
The OCSResponse should not be used by apps. They should extend the
OCSController and use normal DataResponses instead.
  • Loading branch information
rullzer committed Sep 5, 2016
1 parent 8b484ee commit 3b2beea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/public/AppFramework/Http/OCSResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -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='',
Expand All @@ -79,6 +79,7 @@ public function __construct($format, $statuscode, $message,
/**
* @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);
Expand Down

0 comments on commit 3b2beea

Please sign in to comment.