V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  doyouhaobaby  ›  全部回复第 4 页 / 共 4 页
回复总数  62
1  2  3  4  
@to2false 忘了说,就是每一个模块都有完全一致的结构。
@to2false 现在流行微服务,一般来说不需要多个模板来开发,这种场景下不需要注册 Admin,Phpui 这种多模块。
"Admin\\" : "application/admin",
"Phpui\\" : "application/phpui",

我们默认自动路由访问模块 http://queryphp.cn/:admin/controller/action 将访问 admin 模块,":" 表示访问某个模块。

其它的路由是基于标准 swagger 做的注解路由 https://github.com/hunzhiwange/framework/blob/master/src/Queryyetsimple/Router/SwaggerRouter.php#L244,路由,路由匹配采用 FastRoute 的高效匹配原理。

基于这个问题,https://github.com/hunzhiwange/framework/blob/master/src/Queryyetsimple/Router/Router.php#L491,所以相当于很还是只有一个 App 模块,所以也遵循 tp5,laravel 等默认应用 App 顶层命名空间。
1  2  3  4  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4915 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 05:41 · PVG 13:41 · LAX 22:41 · JFK 01:41
♥ Do have faith in what you're doing.