phpgt / phpgt/WebEngine

Allow extending DefaultRouter rather than BaseRouter

Open Beginner friendly
#682 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.