aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh <josh.t.richards@gmail.com>2025-01-26 10:53:21 -0500
committerFerdinand Thiessen <opensource@fthiessen.de>2025-04-23 22:43:03 +0200
commit6951053c90cc96d1fdeb6a5146f6c2d240b01ca9 (patch)
treedc9c77c2c10d7f0b71063fd994d052231523c7ab
parent56b9974c419f797d85b9e48d1402374e6cfacfb6 (diff)
downloadnextcloud-server-jtr-docs-dispatcher-return.tar.gz
nextcloud-server-jtr-docs-dispatcher-return.zip
docs(dispatcher): Correct described return valuesjtr-docs-dispatcher-return
Signed-off-by: Josh <josh.t.richards@gmail.com>
-rw-r--r--lib/private/AppFramework/Http/Dispatcher.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Http/Dispatcher.php b/lib/private/AppFramework/Http/Dispatcher.php
index d63a9108b47..d129a7d770b 100644
--- a/lib/private/AppFramework/Http/Dispatcher.php
+++ b/lib/private/AppFramework/Http/Dispatcher.php
@@ -90,9 +90,11 @@ class Dispatcher {
* @param Controller $controller the controller which will be called
* @param string $methodName the method name which will be called on
* the controller
- * @return array $array[0] contains a string with the http main header,
- * $array[1] contains headers in the form: $key => value, $array[2] contains
- * the response output
+ * @return array $array[0] contains the http status header as a string,
+ * $array[1] contains response headers as an array,
+ * $array[2] contains response cookies as an array,
+ * $array[3] contains the response output as a string,
+ * $array[4] contains the response object
* @throws \Exception
*/
public function dispatch(Controller $controller, string $methodName): array {