Refactor the configuration class for more simplicity.
This commit is contained in:
@@ -62,15 +62,8 @@ class Config {
|
|||||||
|
|
||||||
static::load($module, $file);
|
static::load($module, $file);
|
||||||
|
|
||||||
if (is_null($key))
|
|
||||||
{
|
|
||||||
static::$items[$module][$file] = $value;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Arr::set(static::$items[$module][$file], $key, $value);
|
Arr::set(static::$items[$module][$file], $key, $value);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse a configuration key into its module, file, and key segments.
|
* Parse a configuration key into its module, file, and key segments.
|
||||||
|
|||||||
Reference in New Issue
Block a user