We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
php bin/swoft -V
php --ri swoole
php -v
Describe the bug RequestMapping注解的name属性无效
Details
路由注解加name属性,在获取route对象时得不到name值 打印出来是空字符串 已经提交了pr swoft-cloud/swoft-component#559
Provide minimal script to reproduce the issue
/** *@RequestMapping(method={RequestMethod::GET},name="get.route.test") */ public function show(Request $request){ $route = $request->getAttribute(Request::ROUTER_ATTRIBUTE)[2]; $routeName = $route->getName(); vdump($routeName); }
The text was updated successfully, but these errors were encountered:
hi @burugo
不能直接向组件仓库提交PR, 参考这里 #829
Sorry, something went wrong.
hi @burugo 不能直接向组件仓库提交PR, 参考这里 #829
已更改pr地址
stelin
inhere
No branches or pull requests
php bin/swoft -V
)php --ri swoole
)php -v
)Describe the bug
RequestMapping注解的name属性无效
Details
The text was updated successfully, but these errors were encountered: