Skip to content

Commit e3a5767

Browse files
authored
Merge pull request #1269 from nextcloud/deprecate_ocs_response
Deprecate OCSRespone
2 parents 5f1fbf4 + 3b2beea commit e3a5767

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/public/AppFramework/Http/OCSResponse.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@
2929

3030
namespace OCP\AppFramework\Http;
3131

32-
use OCP\AppFramework\Http;
33-
3432
/**
3533
* A renderer for OCS responses
3634
* @since 8.1.0
35+
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
3736
*/
3837
class OCSResponse extends Response {
3938

@@ -53,6 +52,7 @@ class OCSResponse extends Response {
5352
* @param int|string $itemscount
5453
* @param int|string $itemsperpage
5554
* @since 8.1.0
55+
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
5656
*/
5757
public function __construct($format, $statuscode, $message,
5858
$data=[], $itemscount='',
@@ -79,6 +79,7 @@ public function __construct($format, $statuscode, $message,
7979
/**
8080
* @return string
8181
* @since 8.1.0
82+
* @deprecated 9.2.0 To implement an OCS endpoint extend the OCSController
8283
*/
8384
public function render() {
8485
$r = new \OC_OCS_Result($this->data, $this->statuscode, $this->message);

0 commit comments

Comments
 (0)