Conversation
samdark
commented
Apr 5, 2026
| Q | A |
|---|---|
| Is bugfix? | ❌ |
| New feature? | ✔️ |
| Breaks BC? | ❌ (it is app template) |
| Fixed issues | #417, #395 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #458 +/- ##
============================================
+ Coverage 76.96% 85.08% +8.11%
Complexity 29 29
============================================
Files 11 11
Lines 178 181 +3
============================================
+ Hits 137 154 +17
+ Misses 41 27 -14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds first-class .env support so the template works out-of-the-box in non-Docker local/dev environments (and defaults safely in production), addressing issues around missing/invalid APP_ENV.
Changes:
- Introduce
src/bootstrap.phpto centralize autoloading + environment initialization and load.envviavlucas/phpdotenv. - Switch console (
yii) and web (public/index.php) entrypoints to use the new bootstrap. - Document
.envusage, add.env.example, ignore.env, and add the new dependency.
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
yii |
Uses shared bootstrap instead of removed autoload script. |
public/index.php |
Uses shared bootstrap so .env is loaded for web execution. |
src/bootstrap.php |
New bootstrap: composer autoload + dotenv safeLoad + Environment::prepare(). |
src/autoload.php |
Removed in favor of src/bootstrap.php. |
src/Environment.php |
Adjusts defaulting/error handling for APP_ENV. |
composer.json |
Adds vlucas/phpdotenv dependency. |
README.md |
Documents copying .env.example to .env and running without explicit APP_ENV=dev. |
CHANGELOG.md |
Records enhancement for issue #417. |
.gitignore |
Ignores .env. |
.env.example |
Provides a default dev .env template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.