Gets a "parameter" value.
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:
It is better to explicitly get request parameters from the appropriate public property instead (query, request, attributes, ...).
string $key the key:
mixed $default the default value:
Boolean $deep is parameter deep in multidimensional array:
mixed
public function get($key, $default = null, $deep = false) {
return $this->query
->get($key, $this->attributes
->get($key, $this->request
->get($key, $default, $deep), $deep), $deep);
}