Repository navigation
[SPEC-002] Suporte à sintaxe de parâmetro {id} (feat) - #23
Merged
Merged
Conversation
- Request::parsePath() now extracts :id and {id} (and {id<constraint>})
named parameters, using the constraint for the match pattern.
- Update routing syntax docs.
Refs: SPEC-002 (PivotPHP/pivotphp-core-routing#2)
Fixes documentation validation that requires a framework overview for the current version (2.1.1).
🚀 Release Readiness Report - PivotPHP Core v2.1.1✅ All Checks Passed!
📦 Ready for PublicationThe project is ready to be tagged and released! Next Steps:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Request::parsePath()passa a extrair parâmetros na sintaxe{id}(e{id<constraint>}), além da já suportada:id. Junto com ocore-routing1.2.0(já publicado na SPEC-002), rotas
/users/{id}funcionam de ponta a ponta.Mudanças
src/Http/Request.php:parsePath()usa regex unificada[{:](nome)(<constraint>)?}.tests/Http/RequestTest.php: 4 testes novos (brace, brace+constraint, mixed, colon).tests/Integration/Routing/BraceParameterIntegrationTest.php: fluxo end-to-end{id}.docs/technical/routing/SYNTAX_GUIDE.md: documenta as duas sintaxes.docs/releases/FRAMEWORK_OVERVIEW_v2.1.1.md: overview do release (corrige a validação de documentação — commit separado).Como testar
Versionamento (SemVer)
MINOR →
2.2.0(agrupado com as demais SPECs do core; CHANGELOG no release).Documentação
SYNTAX_GUIDE.md+FRAMEWORK_OVERVIEW_v2.1.1.md(gatedoc-reviewaprovado; validaçãovalidate_project.phppassa).Instruções de merge
Squash and mergeparamain.pivotphp-core-routing#2permanece aberta até a faseskeleton(docs) concluída.