Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed May 8, 2018
1 parent 50c84cd commit 967eee7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ class Config

public function __construct()
{
//请在bin文件中执行 install命令,将Resource/Config.php释放至ROOT
$data = require EASYSWOOLE_ROOT . '/Config.php';
$file = EASYSWOOLE_ROOT . '/Config.php';
$data = [];
if(file_exists($file)){
$data = require EASYSWOOLE_ROOT . '/Config.php';
}
$this->conf = new SplArray($data);
}

Expand Down

0 comments on commit 967eee7

Please sign in to comment.