Skip to content

Config Setup: the hierarchy flag is removed in 3.2.0 #190

Backlog

Description

@armanist

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

Activity

  1. added
    documentation
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions