Skip to content

Commit

Permalink
added force option to includeConfig()
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed May 11, 2016
1 parent d240695 commit 05cfb26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ public function getItem($id)
* @param string|array $path
* @return bool true if the path was unique and loaded
*/
public function includeConfig($path)
public function includeConfig($path, $force=false)
{
$file = File::create($path);
$path = $file->getPath();
if (!isset($this->_included[$path])) {
if (!isset($this->_included[$path]) || $force) {
$this->_included[$path] = $path;
$this->mergeItems($file->load());
return true;
Expand Down

0 comments on commit 05cfb26

Please sign in to comment.