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