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