Skip to content

Commit a6e1a28

Browse files
committed
avoid the request service where possible
1 parent 0507225 commit a6e1a28

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
@@ -1847,7 +1847,7 @@ an array.
18471847
You can also access POST values (in this case "name") directly through
18481848
the request object, like so::
18491849

1850-
$this->get('request')->request->get('name');
1850+
$request->request->get('name');
18511851

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

0 commit comments

Comments
 (0)