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

路由是否可以兼容Router #11

Closed
Sgenmi opened this issue Sep 1, 2020 · 2 comments
Closed

路由是否可以兼容Router #11

Sgenmi opened this issue Sep 1, 2020 · 2 comments

Comments

@Sgenmi
Copy link

Sgenmi commented Sep 1, 2020

是否可以在app类中 增加一个方法
接受 Hyperf\HttpServer\Router\Router; 路由统一设置

@Reasno
Copy link
Member

Reasno commented Sep 1, 2020

这个建议我认为比较稳妥 欢迎PR

@huangdijia
Copy link
Member

$app->addGroup([], function() {
    // 路由统一设置
});

这样能满足?

@Sgenmi Sgenmi closed this as completed Sep 9, 2022
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

3 participants