Remove the hierarchy flag from Config Setup
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
Start with Quantum\Config\Setup, Config::resolveFilePath(), SetupTest, and advanced-features/configuration.md, then read the linked context in issue #618. Remove the hierarchy parameter and methods, make lookup fall back to shared, and update the tests plus changelog and upgrade guide for the signature change. Done when the acceptance criteria pass, including the shared fallback test and the listed CI checks.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Remove the hierarchical flag from Quantum\Config\Setup, deprecated in 3.1.2 (#618), and make the shared fallback unconditional.
Why
The flag has no practical use: nothing in src turns it off, and turning it off breaks the loading of the global config in shared/config, which is found only through the fallback. The details are in #618.
Proposed change
- Remove the
$hierarchicalparameter fromSetup::__construct(), and thesetHierarchy()andgetHierarchy()methods. - In
Config::resolveFilePath(), drop theif ($setup->getHierarchy())check. When the file is not found in the module folder, the lookup always falls back toshared. - Remove the three lines about the flag from
SetupTest. - Docs: remove the sentence in
advanced-features/configuration.mdthat says the shared fallback only triggers whenhierarchicalis on, and keep the "shared fallback" wording from 3.1.2.
Breaking changes
Setup::__construct()takes($pathPrefix, $fileName, $module, $exceptionMessage)instead of($pathPrefix, $fileName, $hierarchical, $module, $exceptionMessage).$moduleand$exceptionMessagemove up one position, so a call such asnew Setup('config', 'x', true, 'Blog')changes meaning or fails. Callers that pass only the first two arguments are unaffected.setHierarchy()andgetHierarchy()are gone.- To be listed in the changelog and in the upgrade guide, with a before and after example.
Acceptance criteria
- the parameter and the two methods are removed, and the fallback is unconditional
SetupTestand the other Config tests pass, and a test covers the fallback tosharedfor a module that has no file of its owncomposer test,composer cs:check,composer phpstanandcomposer rector:checkpass on every PHP version in the CI matrix- the changelog and the upgrade guide describe the signature change
- Vorherrschende Sprache
- PHP
- Sterne
- 43
- Forks
- 22
- Ø Merge
- 54 Min.
- Gemergte PRs (30 T.)
- 57
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus quantum-php/framework
-
bug good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
quantum-php/framework#692 ·
Maintainer antworten meist innerhalb von 1 Tag
-
routing testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
quantum-php/framework#547 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
quantum-php/framework#694 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Raise PHPStan to level 9Offenrefactoring tech debt
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 20/100
quantum-php/framework#693 ·
Maintainer antworten meist innerhalb von 1 Tag
-
install:debugbar reads the package folder from the working directory and uses the default storage adapterEvtl. vergeben @armanist hat das heute übernommen. Offenbug console debugbar good first issue
quantum-php/framework#691 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in quantum-php/framework
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug origin:interactive status:available
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Maintainer antworten meist innerhalb von 1 Tag
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag