Skip to content

Commit 7e08962

Browse files
authored
Slightly tweak the comment
The current condition does not guarantee we do not load `.env` in production
1 parent ede9000 commit 7e08962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

symfony/framework-bundle/4.2/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
require __DIR__.'/../vendor/autoload.php';
99

10-
// The check is to ensure we don't use .env in production
10+
// The check is to ensure we don't use .env if APP_ENV is defined
1111
if (!isset($_SERVER['APP_ENV'])) {
1212
if (!class_exists(Dotenv::class)) {
1313
throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');

0 commit comments

Comments
 (0)