Symfony\Component\HttpFoundation\Request::get
Gets a "parameter" value.
This method is mainly useful for libraries that want to provide some flexibility. Order of precedence: GET, PATH, POST Avoid using this method in controllers: * slow * prefer to get from a "named" source It is better to explicitly get request parameters from the appropriate public property instead (query, attributes, request).
Signature
public function get(string
$key,
[mixed
$default = null,
[Boolean
$deep = false]] )
Parameters
$key
— string- the key
$default
— mixed- the default value
$deep
— object- is parameter deep in multidimensional array
Returns
- mixed