Skip to content

[SPEC-107] Skeleton layout: config/ + src/ + public/ + tests/ — 4.0.0 (breaking) - #18

Merged
code-cfernandes merged 1 commit into
mainfrom
breaking/SPEC-107-src-layout
Oct 10, 2026
Merged

code-cfernandes merged 1 commit into
mainfrom
breaking/SPEC-107-src-layout

Conversation

@code-cfernandes

Copy link
Copy Markdown
Member

O que muda

  • app/Controllers/ → src/Controllers/ (PSR-4 App\\ → src/, namespaces inalterados)
  • routes/api.php → src/Routers/api.php
  • bootstrap/app.php → config/bootstrap/app.php (subpasta: o core executa todo config/*.php como configuração)
  • tests/ConfigLayoutTest.php garante que nenhum script fique direto em config/.

Breaking changes

Estrutura do template. Projetos já criados não são afetados; o CHANGELOG explica como adotar a estrutura.

Como testar

composer install && vendor/bin/phpunit (12 testes) e composer serve.

Versão

3.0.0 → 4.0.0 (MAJOR).

Closes #17

🤖 Generated with Claude Code

…ootstrap

- app/Controllers -> src/Controllers (PSR-4 App\ -> src/), routes -> src/Routers,
  bootstrap/app.php -> config/bootstrap/app.php.
- ConfigLayoutTest: every config/*.php must return an array (the core loads them all).

Closes #17

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@code-cfernandes
code-cfernandes merged commit e6c55ad into main Oct 10, 2026
3 checks passed
@code-cfernandes
code-cfernandes deleted the breaking/SPEC-107-src-layout branch October 10, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SPEC-107] Skeleton layout: config/ + src/ + public/ + tests/

1 participant