Merge pull request #459

This commit is contained in:
symfony-flex-server[bot]
2018-09-13 08:50:42 +00:00
committed by GitHub
@@ -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.');