Merge pull request #1285 from symfony/config-bootstrap-removal

Remove `config/bootstrap.php` when not needed anymore
This commit is contained in:
Fabien Potencier
2024-01-21 10:28:24 +01:00
committed by GitHub
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');
}