You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NFR]: make:provider in an ADR project with a database: print only the provide() line #81
In an ADR project, crest make:provider <name> prints a whole registerProviders() override for the front controller. A project from crest new --database already has this override, for DbProvider. When the user pastes the printed method, PHP stops with "cannot redeclare". Today only the docs ("The database") tell the user to add only the provide() line.
Scope
make:provider in an ADR project: when the front controller already overrides registerProviders(), the guidance prints only the provide() line to add to that method.
When the front controller has no override, the guidance stays as it is.
Docs: change the note in "The database" to match.
Open
How crest finds the override in the front controller.
What crest prints when it cannot read the front controller.
Done when
In a project from crest new --flavor=adr --database=sqlite, crest make:provider Mail prints only the provide() line.
In a project from crest new --flavor=adr with no database, it prints the whole override, as today.
Activity
[#81] - printing only the provide() line when the ADR front declares …
[#81] - adding tests for the make:provider guidance of a front with r…
[#81] - updating docs and changelog
niden commentedon Nov 22, 2026
Resolved in #89