[NFR]: ADR route source

已关闭
#45 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@niden 已经在做这个了。

开始于 2026年11月3日。

评估

这个 Issue 还没有评估数据。

描述

enhancement
Summary

ADR does not fire router:matchedRoute, so the Route panel stays empty. Feed RouteCollector from adr:beforeExecuteAction.

Current state
  • EventfulHandler fires adr:beforeExecuteAction with the Action as the source and the request as the data.
  • The request holds the route attributes (getAttributes()).
Proposed direction
  • The ADR bridge from #16 attaches to adr:beforeExecuteAction and calls the RouteCollector method from #44.
  • The panel shows the Action class and the attributes. The MVC rows (module, controller and others) do not apply.
Known limit

EventfulHandler is the terminal handler of the pipeline. A middleware that returns early skips this event, so the panel is empty for that request. A URL with no match also leaves the panel empty. Accept this for the first version.

Acceptance
  • In an ADR app, the Route panel shows the Action class and the attributes.
  • The MVC route source is unchanged.
  • Tests pass with full coverage. phpcs and phpstan pass.
Depends on
  • #16
Part of

#13

主要语言
PHP
星标
6
派生
3
平均合并
3 小时 31 分钟
30 天内合并 PR
43

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

phalcon/debugbar 的其他 Issue

查看 phalcon/debugbar 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。