[NFR]: Debug bar support for ADR / non-MVC apps
维护者通常 3 天内回复
@niden 已经在做这个了。
开始于 2026年7月22日。
评估
这个 Issue 还没有评估数据。
描述
Context: phalcon/debugbar can only be booted and injected against a Phalcon\Mvc\Application, and its collectors gather data by subscribing to MVC event names. That makes the bar unusable in an ADR app (Phalcon\ADR), which was discovered while wiring phalcon/vokuro-adr (the bar is a dependency there but entirely unused). The goal is to make the bar work on ADR - and, by construction, on any framework - without forcing Phalcon\Di\DiInterface back into the ADR delivery ring. Motivation: ADR is a strong pattern for HTML apps, not only JSON, and the debug bar should not be MVC-only.
Events-manager strategy #15
The root coupling is that collectors know framework event names. Break it with three layers:
- A canonical debug-bar signal set the bar owns — a small, stable vocabulary (
query,view.rendered,route.matched,request.received,response.sending). Collectors subscribe only to these. - A per-framework bridge that maps native signals to canonical ones — MVC listens to
db:afterQuery/view:*/router:matchedRoute; ADR listens toPIPELINE_*/APPLICATION_*or instruments directly. - A direct push API on collectors for hosts with no events manager — the bridge pushes.
The events manager then becomes an implementation detail of the active bridge, not a hard dependency of the collectors.
- 主要语言
- PHP
- 星标
- 6
- 派生
- 3
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phalcon/debugbar 的其他 Issue
-
[NFR]: History Panel enhancements可能已有人在做 @niden 于 12 天前认领。 未关闭enhancement
phalcon/debugbar#32 · 已指派 1 人 ·
维护者通常 3 天内回复
-
[NFR]: Collector source adapters for ADR data sources (DB / View / Route)可能重新可做 @niden 于 77 天前认领,目前没有进行中的 PR。 未关闭enhancement
phalcon/debugbar#16 · 已指派 1 人 ·
维护者通常 3 天内回复
-
[NFR]: Decouple collectors from framework event names (bridge + canonical signals)可能重新可做 @niden 于 77 天前认领,目前没有进行中的 PR。 未关闭enhancement
phalcon/debugbar#15 · 已指派 1 人 ·
维护者通常 3 天内回复
-
[NFR]: Framework-neutral integration seam: boot and response injection without Mvc\Application可能重新可做 @niden 于 77 天前认领,目前没有进行中的 PR。 未关闭enhancement
phalcon/debugbar#14 · 已指派 1 人 ·
维护者通常 3 天内回复
-
[NFR]: Services panel for DebugBar可能重新可做 @niden 于 87 天前认领,目前没有进行中的 PR。 未关闭enhancement
phalcon/debugbar#5 · 已指派 1 人 ·
维护者通常 3 天内回复
相似的 Issue
-
extension/Commercial needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
crazy-goat/rabbit-stream#753 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
opensourcepos/opensourcepos#4743 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
grokability/snipe-it#19786 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 3 天内回复