Allow extending DefaultRouter rather than BaseRouter
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 26
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
When the application has its own router, it's useful to just add a single routing rule rather than define the whole router again.
Due to WebEngine's default router not being within a PSR-4 autoloading path, it's impossible to extend the DefaultRouter, and applications always have to extend the BaseRouter and define all routes again themselves.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating DefaultRouter, BaseRouter, and the WebEngine PSR-4 autoload configuration. Verify that an application can extend DefaultRouter and add one routing rule without redefining the existing routes; confirm the result with the relevant router or application checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100