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