mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
9 lines
189 B
PHP
9 lines
189 B
PHP
<?php
|
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
// The check is to ensure we don't use .env in production
|
|
if (!isset($_SERVER['APP_ENV'])) {
|
|
(new Dotenv())->load(__DIR__.'/../../.env');
|
|
}
|