The method getQueryParameter in AbstractController.php has a wrong description.
/**
Obtains a parameter from the POST parameters.
*
@param string $name Parameter name
@param mixed $defaultValue Default value
@return mixed
*/
public function getQueryParameter($name, $defaultValue = '') {
return isset($this->getParameters[$name]) ? $this->getParameters[$name] : $defaultValue;
}
Why do you use the method name 'getQueryParameter' and not 'getGetParameter'? The variable is called 'getParameters' and therefore its getter method should be 'getGetParameters'.
Or maybe 'getParameter($name, $type, $defaultValue = '')" could be used. $type: GET or POST or ALL
The method getQueryParameter in AbstractController.php has a wrong description.
/**
Why do you use the method name 'getQueryParameter' and not 'getGetParameter'? The variable is called 'getParameters' and therefore its getter method should be 'getGetParameters'. Or maybe 'getParameter($name, $type, $defaultValue = '')" could be used. $type: GET or POST or ALL