Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启开放平台自动路由后报错 #1042

Closed
southill opened this issue Dec 7, 2017 · 0 comments
Closed

开启开放平台自动路由后报错 #1042

southill opened this issue Dec 7, 2017 · 0 comments

Comments

@southill
Copy link

southill commented Dec 7, 2017

我用的环境

PHP 版本:7.1.7
overtrue/wechat 版本:4.0
是否使用了框架?框架名称:Lumen 5.5

问题及现象

出现以下报错:

(1/1) FatalThrowableError
Call to undefined method Laravel\Lumen\Application::group()

找到绑定路由的地方:

$router = isset($this->app['router']) ? $this->app['router'] : $this->app;

修改成如下后解决:

$router = isset($this->app->router) ? $this->app->router : $this->app;

刚学习Lumen,只能凑合着改,不知道为何出错为何要这样改 - -。

求解答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant