Skip to content

Commit

Permalink
Merge pull request #175 from ojhaujjwal/patch-1
Browse files Browse the repository at this point in the history
small doc enhancement
  • Loading branch information
Ocramius committed Sep 22, 2014
2 parents 8f75205 + bb2cc37 commit ea12a93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/04. Controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class TweetListController extends AbstractRestfulController
{
public function post(Tweet $tweet)
{
$userResource = $this->getContextResource(); // $userResource is a ResourceInterface object
$userResource = $this->getContextResource(); // $userResource is a \ZfrRest\Resource\ResourceInterface object
$user = $userResource->getData();
}
}
```
Expand Down

0 comments on commit ea12a93

Please sign in to comment.