[HttpFoundation] added some info in Request:get() phpdoc

This commit is contained in:
Fabien Potencier 2012-01-24 10:24:25 +01:00
parent bcef85b948
commit de1ea6c390

View File

@ -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