Skip to content

Commit

Permalink
v3.0.3
Browse files Browse the repository at this point in the history
* 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 <crynobone@gmail.com>
  • Loading branch information
crynobone committed Mar 1, 2015
1 parent 67378bd commit caa5343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit caa5343

Please sign in to comment.