Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 13, 2020
1 parent b2918ee commit f2db682
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@ public function __construct(?AbstractConfig $config = null)
$this->conf = $config;
}

function storageHandler(AbstractConfig $config):Config
function storageHandler(AbstractConfig $config = null):AbstractConfig
{
$this->conf = $config;
return $this;
if($config){
$this->conf = $config;
}
return $this->conf;
}


/**
* 获取配置项
* @param string $keyPath 配置项名称 支持点语法
Expand Down

0 comments on commit f2db682

Please sign in to comment.