Config Setup: the hierarchy flag is removed in 3.2.0
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php
调研方向
两处编辑都已写明:从 v3.0/advanced-features/configuration.md 中的“Path Resolution Table”开始,重写那句话,使共享配置回退读起来像是始终开启;然后向 v3.0/upgrade-guide.md 中的“Upgrading from 3.1 to 3.2”添加已移除 flag 的小节,并用 setHierarchy( 和 getHierarchy( 扩展“Check the upgrade”中的 grep 列表。先阅读 quantum-php/framework#619 和 PR #704,以确认新的构造函数签名和 TypeError 行为,因为每一条陈述都必须匹配 3.2.x 代码。当两个文件都描述 3.2.0、且未将 flag 称为已弃用,并已在 staging 中暂存时,即完成。
由索引模型根据 Issue 内容生成。
描述
Summary
Framework 3.2.0 removes the hierarchy flag of Quantum\Config\Setup (quantum-php/framework#619): the $hierarchical constructor argument, setHierarchy() and getHierarchy(). The fallback from a module's config file to shared/config is always on, and the constructor is now ($pathPrefix, $fileName, $module, $exceptionMessage). The docs still describe the flag as deprecated.
Changes
v3.0/advanced-features/configuration.md, under "Path Resolution Table": the sentence that says the shared fallback is on by default and that$hierarchicalandsetHierarchy()are deprecated becomes: the shared fallback is always on.v3.0/upgrade-guide.md, "Upgrading from 3.1 to 3.2":- a new section on the removed flag:
new Setup('config', 'app', true, 'Admin')becomesnew Setup('config', 'app', module: 'Admin'); what an old positional call does now (aTypeErrorwithstrict_types, the wrong module without it);setHierarchy()andgetHierarchy()are gone. - "Check the upgrade": the grep also looks for
setHierarchy(andgetHierarchy(.
- a new section on the removed flag:
Section 13 of "Upgrading from 3.0 to 3.1" (the 3.1.2 deprecation) stays as it is.
Every statement is checked against the 3.2.x code. The changes wait in staging until 3.2.0 is released.
Related
- quantum-php/framework#619, PR quantum-php/framework#704
- 主要语言
- 没有语言数据
- 星标
- 3
- 派生
- 1
- 平均合并
- 2 分钟
- 30 天内合并 PR
- 27
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
quantum-php/docs 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
quantum-php/docs#196 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 72/100
quantum-php/docs#187 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 75/100
quantum-php/docs#194 ·
维护者通常 1 天内回复
-
documentation
难度 3/5 1-2 天 新手友好度 63/100
quantum-php/docs#192 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
quantum-php/docs#185 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
google/elephant-goldfish-model#586 ·
维护者通常 2 天内回复
-
documentation Entwickler
难度 1/5 1 小时以内 新手友好度 89/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
memtomem/memtomem-stm#1657 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 68/100
lightninglabs/layertree#28 ·