Dont use getenv(), use $_SERVER instead

This commit is contained in:
Nicolas Grekas
2017-08-22 15:09:35 +02:00
parent 9dd224dd68
commit ca22a33dca
3 changed files with 7 additions and 7 deletions
@@ -3,6 +3,6 @@
use Symfony\Component\Dotenv\Dotenv;
// The check is to ensure we don't use .env in production
if (!getenv('APP_ENV')) {
if (!isset($_SERVER['APP_ENV'])) {
(new Dotenv())->load(__DIR__.'/../../.env');
}