Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[NFR]: Debug bar support for ADR / non-MVC apps

Aberta
#13 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 3 dias

@niden já está trabalhando nisso.

Desde 22/7/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

enhancement

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:

  1. 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.
  2. A per-framework bridge that maps native signals to canonical ones — MVC listens to db:afterQuery / view:* / router:matchedRoute; ADR listens to PIPELINE_* / APPLICATION_* or instruments directly.
  3. 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.

Linguagem predominante
PHP
Estrelas
6
Forks
3
Merge médio
1d 17h
PRs com merge (30d)
3

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de phalcon/debugbar

Todas as issues de phalcon/debugbar

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.