AutoRouterImproved extendability
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
首先閱讀 AutoRouterImproved,以及它目前用來尋找控制器和方法名稱的父路由器方法。比較兩種提議的方案:重複使用父路由器的行為,或透過應用程式特定的服務讓自動路由器可替換且可擴充。完成的標準是確定一項設計,並實作無需複製路由器即可變更控制器和方法名稱的功能。
由索引模型根據 Issue 內容生成。
描述
In the current state, the AutoRouterImproved is not thought to be replaced by an App-Specific service and to be extended on.
kenjis: Because it is better to implement the interface, not extending the class.
In my case, I need to change the controller & method name which is already implemented in the router.
Re-Implementing the AutoRouterImproved to do that seems kinda ridiculous.
Two approaches come to my mind:
- The specific solution: Use the "parent" routers methods for finding the method and controller name, this prevents duplicate code and allows for a little app-specific behavior.
- The generic solution: Make the auto routers replaceable by app-specific services
- Optional: make both extendable, so we don't have to write ridiculous amounts of code for small changes.
- 主要語言
- PHP
- 星號
- 6k
- 分支
- 2k
- 平均合併
- 1 天 22 小時
- 30 天內合併 PR
- 59
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
codeigniter4/CodeIgniter4 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
codeigniter4/CodeIgniter4#10616 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 35/100
codeigniter4/CodeIgniter4#10618 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 62/100
codeigniter4/CodeIgniter4#10617 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 25/100
codeigniter4/CodeIgniter4#10615 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 48/100
codeigniter4/CodeIgniter4#10589 · 3 則留言 ·
維護者通常 1 天內回覆
查看 codeigniter4/CodeIgniter4 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
pluginsGLPI/addressing#127 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
TYPO3BestPractices/tea#2409 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
api-platform/core#8690 ·
維護者通常 1 天內回覆
-
No Code Attached Yet
難度 2/5 1-3 小時 新手友好度 72/100
joomla/joomla-cms#48626 ·
維護者通常 1 天內回覆
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 70/100
DorsetDigital/silverstripe-schema-manager#26 ·
維護者通常 1 天內回覆