yiisoft / yiisoft/router

Add options to control method failure handling in the Router middleware

Open
#249 0 comments 2 reactions 1 assignee View on GitHub

@olegbaturin is already working on this.

Since Oct 22, 2024.

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

Description

  1. Add handleMethodFailure property to enable/disable method failure handling.
  2. Add optionsHandler and notAllowedHandler properties to generate appropriate responses.

https://github.com/olegbaturin/yii3-router/blob/c954cadfe0d8a48619e6a78378dc73ce663b0194/src/Middleware/Router.php#L20

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.