Closed burugo closed 4 years ago
php bin/swoft -V
php --ri swoole
php -v
Describe the bug RequestMapping注解的name属性无效
Details
路由注解加name属性,在获取route对象时得不到name值 打印出来是空字符串 已经提交了pr https://github.com/swoft-cloud/swoft-component/pull/559 Provide minimal script to reproduce the issue
路由注解加name属性,在获取route对象时得不到name值 打印出来是空字符串 已经提交了pr https://github.com/swoft-cloud/swoft-component/pull/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); }
hi @burugo
不能直接向组件仓库提交PR, 参考这里 swoft-cloud/swoft#829
hi @burugo 不能直接向组件仓库提交PR, 参考这里 #829
不能直接向组件仓库提交PR, 参考这里 #829
已更改pr地址
php bin/swoft -V
)php --ri swoole
)php -v
)Describe the bug RequestMapping注解的name属性无效
Details