Refactoring the config class.
This commit is contained in:
parent
1091bd8591
commit
5e28cd08b4
|
@ -79,9 +79,7 @@ private static function parse($key)
|
||||||
|
|
||||||
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
|
if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2);
|
||||||
|
|
||||||
$segments = explode('.', $key);
|
$key = (count($segments = explode('.', $key)) > 1) ? implode('.', array_slice($segments, 1)) : null;
|
||||||
|
|
||||||
$key = (count($segments) > 1) ? implode('.', array_slice($segments, 1)) : null;
|
|
||||||
|
|
||||||
return array($module, $segments[0], $key);
|
return array($module, $segments[0], $key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue