yiisoft / yiisoft/router

Allow to use backed enumerations as route name

Open Beginner friendly
#280 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

severity:BC breaking type:enhancement
Dominant language
PHP
Stars
63
Forks
26
Avg merge
6d 2h
Merged PRs (30d)
1

Description

Proposed new feature or change

This relates to the following items:

  • url generator "generate" methods
  • Route::name() method
  • RouteCollection::getRoute() method

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 with the Route::name() method, the only checked item in the issue, and inspect how it currently accepts route names. Determine the expected behavior for backed enumerations and add focused coverage for that method; done means backed enum values can be used as route names without affecting existing names.

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
Active
Clarity
Mostly clear
Newbie friendliness
63/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.