[HttpFoundation] added some info in Request:get() phpdoc
This commit is contained in:
parent
bcef85b948
commit
de1ea6c390
@ -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
|
||||
|
Reference in New Issue
Block a user