Remove the hierarchy flag from Config Setup
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 55/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- PHP
- Étoiles
- 43
- Forks
- 22
- Merge moyen
- 54 min
- PR mergées (30 j)
- 57
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de quantum-php/framework
-
bug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
quantum-php/framework#692 ·
Les mainteneurs répondent en général sous 1 jour
-
routing testing
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
quantum-php/framework#547 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
quantum-php/framework#694 ·
Les mainteneurs répondent en général sous 1 jour
-
Raise PHPStan to level 9Ouverterefactoring tech debt
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
quantum-php/framework#693 ·
Les mainteneurs répondent en général sous 1 jour
-
install:debugbar reads the package folder from the working directory and uses the default storage adapterPeut-être pris @armanist l’a pris aujourd’hui. Ouvertebug console debugbar good first issue
quantum-php/framework#691 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de quantum-php/framework
Issues similaires
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
ajeetraina/awesome-docker-sbx#559 ·
-
dependencies enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
novalo-dev/Prestashop-MCP-Server#329 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
bug origin:interactive status:available
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Ultimate-Multisite/ultimate-multisite#2131 ·
Les mainteneurs répondent en général sous 1 jour
-
sync-en
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour