From caa5343895458742efd54fc7667df1177f37b70d Mon Sep 17 00:00:00 2001 From: crynobone Date: Sun, 1 Mar 2015 15:59:46 +0800 Subject: [PATCH] v3.0.3 * Config: - Allow config to be stored in sub-directories which bring compatibility with Laravel 5 packages. - Tweak how cached config are loaded by introducing `Orchestra\Config\Repository::setFromCache()`. - Add `Orchestra\Config\NamespacedItemResolver`. Signed-off-by: crynobone --- docs/changes.md | 2 +- src/Config/Repository.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changes.md b/docs/changes.md index 982b2b6..413c3e4 100644 --- a/docs/changes.md +++ b/docs/changes.md @@ -5,7 +5,7 @@ title: Kernel Change Log # Version 3.0 {#v3-0} -## v3.0.3@dev {#v3-0-3} +## v3.0.3 {#v3-0-3} * Config: - Allow config to be stored in sub-directories which bring compatibility with Laravel 5 packages. diff --git a/src/Config/Repository.php b/src/Config/Repository.php index d6954e0..b21b309 100644 --- a/src/Config/Repository.php +++ b/src/Config/Repository.php @@ -83,7 +83,7 @@ public function get($key, $default = null) $this->load($group, $namespace, $collection); if (empty($item)) { - return $this->items[$collection]; + return Arr::get($this->items, $collection, $default); } return Arr::get($this->items[$collection], $item, $default);