[NFR]: ADR route source

Geschlossen
#45 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@niden arbeitet bereits daran.

Seit 03.11.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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

Vorherrschende Sprache
PHP
Sterne
6
Forks
3
Ø Merge
3 Std. 31 Min.
Gemergte PRs (30 T.)
43

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus phalcon/debugbar

Alle Issues in phalcon/debugbar

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.