Environment: remove the shared/config/env.php fallback
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- php
- Área
- backend, documentation, testing
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- PHP
- Estrellas
- 44
- Forks
- 22
- Merge medio
- 2 h 57 min
- PR fusionados (30 d)
- 52
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de quantum-php/framework
-
tech debt testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
quantum-php/framework#696 ·
Los mantenedores suelen responder en 1 día
-
routing testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
quantum-php/framework#547 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
quantum-php/framework#714 ·
Los mantenedores suelen responder en 1 día
-
refactoring tech debt
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
quantum-php/framework#712 ·
Los mantenedores suelen responder en 1 día
-
Raise PHPStan to level 9Abiertorefactoring tech debt
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
quantum-php/framework#693 ·
Los mantenedores suelen responder en 1 día
Todos los issues de quantum-php/framework
Issues similares
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ExpressionEngine/ExpressionEngine#5493 ·
Los mantenedores suelen responder en 5 días
-
"Attempt to read property 'username' on null" error after a user is deletedPosiblemente ocupada @dicksonlaw583 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
omeka/plugin-SimplePages#49 ·
-
Copy button does not workAbiertonot confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día