Update symfony to 7.2

This commit is contained in:
Tim 2024-12-16 23:47:22 +01:00
parent 13b8091451
commit 3e172b6f1b
7 changed files with 462 additions and 546 deletions

2
.env
View File

@ -16,7 +16,7 @@
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=c38de86853448126a1e57bd9dbe6760e
APP_SECRET=
###< symfony/framework-bundle ###
DATABASE_HOSTNAME=localhost

View File

@ -4,6 +4,10 @@
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
if (!is_dir(dirname(__DIR__).'/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}

View File

@ -4,19 +4,19 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"php": ">=8.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-mysqli": "*",
"symfony/console": "6.3.*",
"symfony/dotenv": "6.3.*",
"symfony/filesystem": "6.3.*",
"symfony/finder": "6.3.*",
"symfony/console": "7.2.*",
"symfony/dotenv": "7.2.*",
"symfony/filesystem": "7.2.*",
"symfony/finder": "7.2.*",
"symfony/flex": "^1.3.1",
"symfony/framework-bundle": "6.3.*",
"symfony/process": "6.3.*",
"symfony/runtime": "6.3.*",
"symfony/yaml": "6.3.*"
"symfony/framework-bundle": "7.2.*",
"symfony/process": "7.2.*",
"symfony/runtime": "7.2.*",
"symfony/yaml": "7.2.*"
},
"config": {
"optimize-autoloader": true,
@ -62,7 +62,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "6.3.*"
"require": "7.2.*"
}
}
}

948
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,22 +1,12 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
http_method_override: false
handle_all_throwables: true
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
# Note that the session will be started ONLY if you read or write from it.
session: true
#esi: true
#fragments: true
php_errors:
log: true
when@test:
framework:

View File

@ -1,7 +1,5 @@
framework:
router:
utf8: true
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
#default_uri: http://localhost

View File

@ -21,12 +21,12 @@
"version": "v5.3.4"
},
"symfony/console": {
"version": "5.3",
"version": "7.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"branch": "main",
"version": "5.3",
"ref": "da0c8be8157600ad34f10ff0c9cc91232522e047"
"ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
},
"files": [
"bin/console"
@ -69,12 +69,12 @@
]
},
"symfony/framework-bundle": {
"version": "6.3",
"version": "7.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "6.2",
"ref": "af47254c5e4cd543e6af3e4508298ffebbdaddd3"
"version": "7.2",
"ref": "87bcf6f7c55201f345d8895deda46d2adbdbaa89"
},
"files": [
"config/packages/cache.yaml",
@ -118,12 +118,12 @@
"version": "v5.3.12"
},
"symfony/routing": {
"version": "6.3",
"version": "7.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "6.2",
"ref": "e0a11b4ccb8c9e70b574ff5ad3dfdcd41dec5aa6"
"version": "7.0",
"ref": "21b72649d5622d8f7da329ffb5afb232a023619d"
},
"files": [
"config/packages/routing.yaml",