Skip to content

Commit

Permalink
Add doc block example.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 1, 2014
1 parent b0c0af0 commit 354dc4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Routing/RequestActionTrait.php
Expand Up @@ -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.
Expand Down

0 comments on commit 354dc4c

Please sign in to comment.