From a6e1a28ad90c1481c4a1d6a740a7cc434b2aa6e0 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 4 Jan 2015 11:49:44 +0100 Subject: [PATCH] avoid the request service where possible --- book/forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/forms.rst b/book/forms.rst index 01097646b7a..9d864c38f42 100644 --- a/book/forms.rst +++ b/book/forms.rst @@ -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