From de1ea6c39007a491cd0f9d79cf54c9d0e27e3e01 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 24 Jan 2012 10:24:25 +0100 Subject: [PATCH] [HttpFoundation] added some info in Request:get() phpdoc --- src/Symfony/Component/HttpFoundation/Request.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 7ae723d1c5..fc33610906 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -443,10 +443,15 @@ class Request * This method is mainly useful for libraries that want to provide some flexibility. * * Order of precedence: GET, PATH, POST, COOKIE + * * Avoid using this method in controllers: + * * * slow * * prefer to get from a "named" source * + * It is better to explicity get request parameters from the appropriate + * public property instead (query, request, attributes, ...). + * * @param string $key the key * @param mixed $default the default value * @param type $deep is parameter deep in multidimensional array