Environment: remove the shared/config/env.php fallback
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 72/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- php
- Bereich
- backend, documentation, testing
Rechercherichtung
Read the environment selection logic in packages/environment/ and the tests that cover it, then check the 3.3 upgrade guide and changelog. Remove the shared/config/env.php fallback and its deprecation, preserving the stated --env, APP_ENV, then production order and .env file choice. Done means the listed behavior and tests match the issue, the core test fixture no longer contains tests/_root/shared/config/env.php, and the docs describe the new order.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
#714 (3.2.0) chooses the environment from --env, then APP_ENV from the real environment, then app_env in shared/config/env.php, deprecated, then production. This ticket removes the deprecated fallback.
Proposed change
- The environment name comes from the first of:
--env=<name>on aphp qtcommand,APP_ENVfrom the real environment,production. shared/config/env.phpis no longer read, and the deprecation from #714 is removed with it.- The file choice is unchanged:
production→.env, any other name →.env.<name>. - No
APP_ENVinside.env: the environment is chosen before a file is loaded. A developer's machine keeps its own.env(it is not committed), so local values need no separate environment name;.env.<name>files are for choosing between several environments on one machine, such as tests (APP_ENV=testinginphpunit.xml).
Breaking changes
An application that still chooses its environment in shared/config/env.php runs as production and loads .env, until it sets APP_ENV (or --env). Changelog BREAKING entry and an upgrade-guide note for 3.3, pointing to the deprecation logged since 3.2.0.
Tests
- With
env.phppresent and no--env/APP_ENV, the environment isproductionand the file is not read. --envandAPP_ENVwork as in #714.- The core's tests no longer have
tests/_root/shared/config/env.php.
Docs
packages/environment/ and the 3.3 upgrade guide: the order without env.php.
Depends on
#714
- Vorherrschende Sprache
- PHP
- Sterne
- 44
- Forks
- 22
- Ø Merge
- 2 Std. 57 Min.
- Gemergte PRs (30 T.)
- 52
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
-
tech debt testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
quantum-php/framework#696 ·
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
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
quantum-php/framework#714 ·
Maintainer antworten meist innerhalb von 1 Tag
-
refactoring tech debt
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 68/100
quantum-php/framework#712 ·
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
Alle Issues in quantum-php/framework
Ähnliche Issues
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
ExpressionEngine/ExpressionEngine#5493 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
"Attempt to read property 'username' on null" error after a user is deletedEvtl. vergeben @dicksonlaw583 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
omeka/plugin-SimplePages#49 ·
-
not confirmed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag