mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Updated symfony/console recipes.
This commit is contained in:
parent
54fa445f06
commit
2cd5aa8232
2 changed files with 8 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
||||||
use App\Kernel;
|
use App\Kernel;
|
||||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||||
use Symfony\Component\Console\Input\ArgvInput;
|
use Symfony\Component\Console\Input\ArgvInput;
|
||||||
|
use Symfony\Component\Dotenv\Dotenv;
|
||||||
use Symfony\Component\ErrorHandler\Debug;
|
use Symfony\Component\ErrorHandler\Debug;
|
||||||
|
|
||||||
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
|
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
|
||||||
|
@ -14,8 +15,8 @@ set_time_limit(0);
|
||||||
|
|
||||||
require dirname(__DIR__).'/vendor/autoload.php';
|
require dirname(__DIR__).'/vendor/autoload.php';
|
||||||
|
|
||||||
if (!class_exists(Application::class)) {
|
if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {
|
||||||
throw new LogicException('You need to add "symfony/framework-bundle" as a Composer dependency.');
|
throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$input = new ArgvInput();
|
$input = new ArgvInput();
|
||||||
|
@ -27,7 +28,7 @@ if ($input->hasParameterOption('--no-debug', true)) {
|
||||||
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
|
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
require dirname(__DIR__).'/config/bootstrap.php';
|
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
|
||||||
|
|
||||||
if ($_SERVER['APP_DEBUG']) {
|
if ($_SERVER['APP_DEBUG']) {
|
||||||
umask(0000);
|
umask(0000);
|
||||||
|
|
|
@ -477,16 +477,15 @@
|
||||||
"version": "v4.2.3"
|
"version": "v4.2.3"
|
||||||
},
|
},
|
||||||
"symfony/console": {
|
"symfony/console": {
|
||||||
"version": "4.4",
|
"version": "5.1",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"version": "4.4",
|
"version": "5.1",
|
||||||
"ref": "ea8c0eda34fda57e7d5cd8cbd889e2a387e3472c"
|
"ref": "c6d02bdfba9da13c22157520e32a602dbee8a75c"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"./bin/console",
|
"./bin/console"
|
||||||
"./config/bootstrap.php"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/contracts": {
|
"symfony/contracts": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue