Merge pull request #11 from mikelbring/develop
Load a config file with out a key
This commit is contained in:
commit
780370826a
|
@ -17,6 +17,17 @@ class Config {
|
||||||
*/
|
*/
|
||||||
public static function get($key)
|
public static function get($key)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// -----------------------------------------------------
|
||||||
|
// We are are just pulling in a file, skip loading a key
|
||||||
|
// -----------------------------------------------------
|
||||||
|
if(strpos($key, '.') == 0)
|
||||||
|
{
|
||||||
|
static::load($key);
|
||||||
|
|
||||||
|
return static::$items[$key];
|
||||||
|
}
|
||||||
|
|
||||||
list($file, $key) = static::parse($key);
|
list($file, $key) = static::parse($key);
|
||||||
|
|
||||||
static::load($file);
|
static::load($file);
|
||||||
|
|
Loading…
Reference in New Issue