Skip to content

Commit

Permalink
bug #4765 [Book][Forms] avoid the request service where possible (xab…
Browse files Browse the repository at this point in the history
…buh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Book][Forms] avoid the request service where possible

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Commits
-------

a6e1a28 avoid the request service where possible
  • Loading branch information
wouterj committed Jan 8, 2015
2 parents dc5d8f8 + a6e1a28 commit ffe3425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/forms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,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 ffe3425

Please sign in to comment.