Skip to content

Commit

Permalink
修正 log 注册失败
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed Aug 2, 2018
1 parent 923d0af commit 203bb39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function bootstrap()
static::setInstance($this);

// 加载组件
$component = array_replace_recursive($this->component, $this->configGet('app.component'));
$component = array_merge($this->component, $this->configGet('app.component'));
foreach ($component as $item) {
$class = new $item;
if (!$class instanceof Component) continue;
Expand All @@ -127,6 +127,7 @@ public function bootstrap()
* 运行应用
*
* @return bool
* @throws \Exception
*/
public function run()
{
Expand Down

0 comments on commit 203bb39

Please sign in to comment.