Remove config/bootstrap.php when not needed anymore

This commit is contained in:
Fabien Potencier
2024-01-20 10:06:15 +01:00
parent 66d9ffb4ea
commit 3d7366d211
4 changed files with 7 additions and 7 deletions
+3
View File
@@ -9,5 +9,8 @@
".phpunit.result.cache",
"/phpunit.xml"
],
"conflict": {
"symfony/framework-bundle": "<5.4"
},
"aliases": ["simple-phpunit"]
}
@@ -4,9 +4,7 @@ use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
+2 -1
View File
@@ -10,7 +10,8 @@
"/phpunit.xml"
],
"conflict": {
"phpunit/phpunit": "<9.6"
"phpunit/phpunit": "<9.6",
"symfony/framework-bundle": "<5.4"
},
"aliases": ["simple-phpunit"]
}
@@ -4,9 +4,7 @@ use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}