Skip to content

Commit 8b1dcb9

Browse files
authored
Merge pull request #50444 from nextcloud/jtr-docs-dispatcher-return
docs(dispatcher): Correct described return values
2 parents 25ef415 + 6951053 commit 8b1dcb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/private/AppFramework/Http/Dispatcher.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ public function __construct(Http $protocol,
9090
* @param Controller $controller the controller which will be called
9191
* @param string $methodName the method name which will be called on
9292
* the controller
93-
* @return array $array[0] contains a string with the http main header,
94-
* $array[1] contains headers in the form: $key => value, $array[2] contains
95-
* the response output
93+
* @return array $array[0] contains the http status header as a string,
94+
* $array[1] contains response headers as an array,
95+
* $array[2] contains response cookies as an array,
96+
* $array[3] contains the response output as a string,
97+
* $array[4] contains the response object
9698
* @throws \Exception
9799
*/
98100
public function dispatch(Controller $controller, string $methodName): array {

0 commit comments

Comments
 (0)