mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
Remove config/bootstrap.php when not needed anymore
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user