mirror of
https://github.com/symfony/recipes.git
synced 2026-09-19 02:56:23 +03:00
Dont use getenv(), use $_SERVER instead
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user