Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[NFR]: Collector source adapters for ADR data sources (DB / View / Route)

Aperta
#16 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@niden ci sta già lavorando.

Dal 22/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement
Summary

Even once collectors are decoupled from event names, three collectors have no data source under ADR, because the ADR stack uses different technologies than MVC. Provide one source adapter per collector, selectable per application, so DB, View, and Route data can be collected in an ADR app (phalcon/vokuro-adr as the reference).

Missing data sources under ADR
  • Database - ADR uses Phalcon\DataMapper\Pdo\Connection, which does not fire db:beforeQuery / db:afterQuery. Needs a DataMapper source (a profiler or a decorating connection) alongside the MVC Db\Adapter (events) source - two adapters feeding one query signal.
  • View - ADR renders .phtml through Phalcon\Mvc\View\Simple with no events manager attached, so view:* never fires. Needs a source that instruments the ADR renderer/responder, or attaches an events manager to Simple.
  • Route - ADR uses Phalcon\ADR\Router, not the MVC router, so router:matchedRoute never fires. Needs an ADR route source.
Proposed direction
  • Define a per-collector source contract, and provide two implementations where relevant (MVC and ADR/DataMapper). The active bridge selects the appropriate source.
  • Ship the DataMapper DB source as the first concrete second-adapter - the most valuable, and the clearest example of "two adapters, one collector".
Acceptance
  • In an ADR app, the Database, View, and Route collectors show real data.
  • The MVC sources are unchanged.
Depends on
  • #15
Lingua principale
PHP
Stelle
6
Fork
3
Merge medio
1g 17h
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phalcon/debugbar

Tutte le issue di phalcon/debugbar

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.