You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: symfony/framework-bundle/4.2/public/index.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
require__DIR__.'/../vendor/autoload.php';
9
9
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
11
11
if (!isset($_SERVER['APP_ENV'])) {
12
12
if (!class_exists(Dotenv::class)) {
13
13
thrownew \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