Skip to content

Commit bffcc97

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #459
2 parents ede9000 + 7e08962 commit bffcc97

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)