Skip to content

Commit

Permalink
avoid the request service where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jan 4, 2015
1 parent 0507225 commit a6e1a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Expand Up @@ -1847,7 +1847,7 @@ an array.
You can also access POST values (in this case "name") directly through
the request object, like so::

$this->get('request')->request->get('name');
$request->request->get('name');

Be advised, however, that in most cases using the ``getData()`` method is
a better choice, since it returns the data (usually an object) after
Expand Down

0 comments on commit a6e1a28

Please sign in to comment.