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

msf后期,会不会引进注解(java annotation)? #70

Closed
wuchuguang opened this issue Oct 9, 2017 · 3 comments
Closed

msf后期,会不会引进注解(java annotation)? #70

wuchuguang opened this issue Oct 9, 2017 · 3 comments

Comments

@wuchuguang
Copy link

在路由定义,和路由的权限上,注解的形式,会大大改善代码的结构和表达/理解

@wuchuguang
Copy link
Author

phpstorm可以安装个PHP Annotation。

swoole httpserver可以启动时解析php Annotation,生成annotions struct。以提高生产运行效率。

@viaweb3
Copy link
Contributor

viaweb3 commented Oct 9, 2017

这个暂时不会考虑,因为PHP原生不支持 annotation(Java) 或者 decorator(Python),只能通过反射来实现,比较重。二是使用注解的方式来路由,不够直观,在大项目中不太好把控,msf的定位是精简的MVC,目前的normal route和restful route已经足够使用,所以在路由层面不会做特别多工作。

@wuchuguang
Copy link
Author

那你们路由的权限,360项目上,实现的路由可以分享一下吗?

@viaweb3 viaweb3 closed this as completed Nov 5, 2017
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

2 participants