From 7e089624a9dafdb35379905182d8c91a16bf392b Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Thu, 13 Sep 2018 11:22:24 +0300 Subject: [PATCH] Slightly tweak the comment The current condition does not guarantee we do not load `.env` in production --- symfony/framework-bundle/4.2/public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/framework-bundle/4.2/public/index.php b/symfony/framework-bundle/4.2/public/index.php index 10878ce5..1cd9ddab 100644 --- a/symfony/framework-bundle/4.2/public/index.php +++ b/symfony/framework-bundle/4.2/public/index.php @@ -7,7 +7,7 @@ use Symfony\Component\HttpFoundation\Request; require __DIR__.'/../vendor/autoload.php'; -// The check is to ensure we don't use .env in production +// The check is to ensure we don't use .env if APP_ENV is defined if (!isset($_SERVER['APP_ENV'])) { if (!class_exists(Dotenv::class)) { 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.');