Skip to content

Document attribute routing#8257

Open
josbeir wants to merge 3 commits into6.xfrom
6.x-attribute-routing-docs
Open

Document attribute routing#8257
josbeir wants to merge 3 commits into6.xfrom
6.x-attribute-routing-docs

Conversation

@josbeir
Copy link
Copy Markdown
Contributor

@josbeir josbeir commented Mar 28, 2026

Refs PR cakephp/cakephp#19293

Adds documentation for the new attribute routing feature introduced in 6.0 (waiting merge).

  • New page development/attribute-routing.md covering all routing attributes (#[Route], #[Get], #[Post], etc.), controller-level attributes (#[Scope], #[Prefix], #[Middleware], #[Extensions], #[RouteClass], #[Resource]), named argument binding, inheritance, inline closure middleware (PHP 8.5+), and combining with file-based routes.
  • Cross-references added in development/routing.md (intro, Prefix Routing, Middleware, RESTful Routing sections).
  • TOC updated with new sidebar entry.

Copilot AI review requested due to automatic review settings March 28, 2026 09:29
@josbeir josbeir force-pushed the 6.x-attribute-routing-docs branch from f8fd5db to 39de3dd Compare March 28, 2026 09:31
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new documentation page describing CakePHP’s upcoming controller attribute routing feature and integrates it into the cookbook navigation and existing routing documentation for discoverability.

Changes:

  • Added new development/attribute-routing.md page documenting routing-related PHP attributes and usage patterns.
  • Added cross-reference tips in development/routing.md pointing readers to the new attribute routing page.
  • Updated the English sidebar TOC to include the new page.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
toc_en.json Adds the new “Attribute Routing” entry under Development in the sidebar.
docs/en/development/routing.md Adds tip callouts linking to the new attribute routing documentation.
docs/en/development/attribute-routing.md Introduces a comprehensive guide/reference page for attribute routing in CakePHP.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants