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

单应用多模块模式下,控制器后缀无效,中间件中无法获取action,controller #3114

Open
shiangchin opened this issue Feb 5, 2025 · 0 comments
Labels

Comments

@shiangchin
Copy link

所属功能组件

中间件(Middleware)

ThinkPHP 版本

8.1.2

操作系统

centos

错误信息

No response

其它说明

namespace think\route\dispatch的Callback类应参考Controller类,需要重写继承的Dispatch类的init方法,在init方法中初始化当前的action,controller,layer, 同时加入 controller_suffix配置项判断

@shiangchin shiangchin added the bug label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant