Config Setup: the hierarchy flag is removed in 3.2.0

未关闭 适合新手
#190 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
php
领域
documentation

调研方向

两处编辑都已写明:从 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 内容生成。

描述

documentation

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

  1. v3.0/advanced-features/configuration.md, under "Path Resolution Table": the sentence that says the shared fallback is on by default and that $hierarchical and setHierarchy() are deprecated becomes: the shared fallback is always on.
  2. 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') becomes new Setup('config', 'app', module: 'Admin'); what an old positional call does now (a TypeError with strict_types, the wrong module without it); setHierarchy() and getHierarchy() are gone.
    • "Check the upgrade": the grep also looks for setHierarchy( and getHierarchy(.

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,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quantum-php/docs 的其他 Issue

查看 quantum-php/docs 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。