Browse Source

Add doc block example.

mark_story 11 years ago
parent
commit
354dc4cf3d
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/Routing/RequestActionTrait.php

+ 11 - 0
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.