diff --git a/src/Routing/RequestActionTrait.php b/src/Routing/RequestActionTrait.php index bc37ff6d81f..da5c8f92e0b 100644 --- a/src/Routing/RequestActionTrait.php +++ b/src/Routing/RequestActionTrait.php @@ -67,6 +67,17 @@ trait RequestActionTrait { * ]); * }}} * + * ### Sending environment or header values + * + * By default actions dispatched with this method will use the global $_SERVER and $_ENV + * values. If you want to override those values for a request action, you can specify the values: + * + * {{{ + * $vars = $this->requestAction('/articles/popular', [ + * 'environment' => ['CONTENT_TYPE' => 'application/json'] + * ]); + * }}} + * * ### Transmitting the session * * By default actions dispatched with this method will use the standard session object.