mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
12 lines
348 B
PHP
12 lines
348 B
PHP
<?php
|
|
|
|
use Symfony\Component\Dotenv\Dotenv;
|
|
|
|
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');
|
|
|
|
if (file_exists(dirname(__DIR__, 2).'/config/bootstrap.php')) {
|
|
require dirname(__DIR__, 2).'/config/bootstrap.php';
|
|
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
|
|
(new Dotenv())->bootEnv(dirname(__DIR__, 2).'/.env');
|
|
}
|