Skip to content

Commit

Permalink
Update Controller.php
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobo.sun authored Oct 19, 2016
1 parent 72ce666 commit 328b4a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function __construct(Request $request = null)
// 生成request对象
$this->request = is_null($request) ? Request::instance() : $request;
// 初始化配置信息
$this->config = Config::get('template') ?? $this->config;
$this->config = Config::get('template') ?: $this->config;
// 处理路由参数
$route = $this->request->param('route', '');
$param = explode('-', $route);
Expand Down

0 comments on commit 328b4a0

Please sign in to comment.