Move loading .env files to bootstrap.php

This commit is contained in:
Nicolas Grekas
2018-11-15 00:20:15 +01:00
parent 8f1a28ffc9
commit 7ff50214ee
29 changed files with 121 additions and 170 deletions
@@ -1,3 +1,4 @@
<?php
App\Kernel::bootstrapEnv('test');
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'test');
require dirname(__DIR__, 2).'/src/.bootstrap.php';