Environment: remove the shared/config/env.php fallback
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php
- Lĩnh vực
- backend, documentation, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- PHP
- Star
- 44
- Fork
- 22
- Merge trung bình
- 2 giờ 57 phút
- Pull request đã merge (30 ngày)
- 52
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của quantum-php/framework
-
tech debt testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
quantum-php/framework#696 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
routing testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
quantum-php/framework#547 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
quantum-php/framework#714 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
refactoring tech debt
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
quantum-php/framework#712 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Raise PHPStan to level 9Đang mởrefactoring tech debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
quantum-php/framework#693 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của quantum-php/framework
Issue tương tự
-
OCM: shares using the `embedded` protocol are rejected with "Missing sharedSecret in protocol"Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ExpressionEngine/ExpressionEngine#5493 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
"Attempt to read property 'username' on null" error after a user is deletedCó thể đã có người làm @dicksonlaw583 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
omeka/plugin-SimplePages#49 ·
-
Copy button does not workĐang mởnot confirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày