Skip to content

Commit

Permalink
Add the current Response instance as parameter to the header userFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Apr 30, 2019
1 parent 9459ef0 commit 30e4092
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ private function addHeaders(
$value
);
} elseif (is_array($value) && array_key_exists('userFunc', $value)) {
$value['response'] = $response;
$response = $response->withHeader(
rtrim($responseHeaderType, '.'),
GeneralUtility::callUserFunction($value['userFunc'], $value, $this)
Expand Down

0 comments on commit 30e4092

Please sign in to comment.