[Configuration] Rename $category to $section in getConfig()
This commit is contained in:
parent
4348119adf
commit
f24ab8b51b
1 changed files with 5 additions and 7 deletions
|
@ -199,18 +199,16 @@ final class Configuration {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the value of a parameter identified by category and key.
|
||||
* Returns the value of a parameter identified by section and key.
|
||||
*
|
||||
* @param string $category The section name (category).
|
||||
* @param string $section The section name.
|
||||
* @param string $key The property name (key).
|
||||
* @return mixed|null The parameter value.
|
||||
*
|
||||
* @todo Rename $category to $section for clarity.
|
||||
*/
|
||||
public static function getConfig($category, $key) {
|
||||
public static function getConfig($section, $key) {
|
||||
|
||||
if(array_key_exists($category, self::$config) && array_key_exists($key, self::$config[$category])) {
|
||||
return self::$config[$category][$key];
|
||||
if(array_key_exists($section, self::$config) && array_key_exists($key, self::$config[$section])) {
|
||||
return self::$config[$section][$key];
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue