Skip to content

Commit ffe3425

Browse files
committed
bug symfony#4765 [Book][Forms] avoid the request service where possible (xabbuh)
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
2 parents dc5d8f8 + a6e1a28 commit ffe3425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ an array.
18541854
You can also access POST values (in this case "name") directly through
18551855
the request object, like so::
18561856

1857-
$this->get('request')->request->get('name');
1857+
$request->request->get('name');
18581858

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

0 commit comments

Comments
 (0)