Update composer recipes

This commit is contained in:
Tim 2025-04-14 19:49:08 +02:00
parent c250c57a22
commit a18eda6748
13 changed files with 48 additions and 61 deletions

2
.env
View File

@ -16,7 +16,7 @@
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
APP_ENV=dev APP_ENV=dev
APP_SECRET=a617c2ab616c5688ff5b0e95ad646641 APP_SECRET=
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###
###> doctrine/doctrine-bundle ### ###> doctrine/doctrine-bundle ###

4
.env.dev Normal file
View File

@ -0,0 +1,4 @@
###> symfony/framework-bundle ###
APP_SECRET=452d8323de922537717fb88b5fa6f80e
###< symfony/framework-bundle ###

View File

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

View File

@ -12,7 +12,6 @@ doctrine:
report_fields_where_declared: true report_fields_where_declared: true
auto_generate_proxy_classes: true auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
identity_generation_preferences: identity_generation_preferences:

View File

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

View File

@ -59,3 +59,4 @@ when@prod:
type: stream type: stream
channels: [deprecation] channels: [deprecation]
path: php://stderr path: php://stderr
formatter: monolog.formatter.json

View File

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

View File

@ -1,6 +1,6 @@
twig: twig:
default_path: '%kernel.project_dir%/templates'
form_themes: ['bootstrap_5_layout.html.twig'] form_themes: ['bootstrap_5_layout.html.twig']
file_name_pattern: '*.twig'
when@test: when@test:
twig: twig:

View File

@ -1,4 +0,0 @@
framework:
uid:
default_uuid_version: 7
time_based_uuid_version: 7

View File

@ -1,7 +1,5 @@
framework: framework:
validation: validation:
email_validation_mode: html5
# Enables validator auto-mapping support. # Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata. # For instance, basic validation constraints will be inferred from Doctrine's metadata.
#auto_mapping: #auto_mapping:

View File

@ -1,17 +1,11 @@
when@dev: when@dev:
web_profiler: web_profiler:
toolbar: true toolbar: true
intercept_redirects: false
framework: framework:
profiler: profiler:
only_exceptions: false
collect_serializer_data: true collect_serializer_data: true
when@test: when@test:
web_profiler:
toolbar: false
intercept_redirects: false
framework: framework:
profiler: { collect: false } profiler: { collect: false }

View File

@ -0,0 +1,3 @@
_security_logout:
resource: security.route_loader.logout
type: service

View File

@ -27,12 +27,12 @@
] ]
}, },
"symfony/console": { "symfony/console": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "5.3",
"ref": "da0c8be8157600ad34f10ff0c9cc91232522e047" "ref": "1781ff40d8a17d87cf53f8d4cf0c8346ed2bb461"
}, },
"files": [ "files": [
"bin/console" "bin/console"
@ -51,24 +51,25 @@
] ]
}, },
"symfony/flex": { "symfony/flex": {
"version": "2.2", "version": "2.5",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "1.0", "version": "2.4",
"ref": "146251ae39e06a95be0fe3d13c807bcf3938b172" "ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
}, },
"files": [ "files": [
".env" ".env",
".env.dev"
] ]
}, },
"symfony/framework-bundle": { "symfony/framework-bundle": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.2", "version": "7.2",
"ref": "af47254c5e4cd543e6af3e4508298ffebbdaddd3" "ref": "87bcf6f7c55201f345d8895deda46d2adbdbaa89"
}, },
"files": [ "files": [
"config/packages/cache.yaml", "config/packages/cache.yaml",
@ -91,24 +92,24 @@
} }
}, },
"symfony/monolog-bundle": { "symfony/monolog-bundle": {
"version": "3.8", "version": "3.10",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "3.7", "version": "3.7",
"ref": "213676c4ec929f046dfde5ea8e97625b81bc0578" "ref": "aff23899c4440dd995907613c1dd709b6f59503f"
}, },
"files": [ "files": [
"config/packages/monolog.yaml" "config/packages/monolog.yaml"
] ]
}, },
"symfony/routing": { "symfony/routing": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.2", "version": "7.0",
"ref": "e0a11b4ccb8c9e70b574ff5ad3dfdcd41dec5aa6" "ref": "21b72649d5622d8f7da329ffb5afb232a023619d"
}, },
"files": [ "files": [
"config/packages/routing.yaml", "config/packages/routing.yaml",
@ -116,24 +117,25 @@
] ]
}, },
"symfony/security-bundle": { "symfony/security-bundle": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.0", "version": "6.4",
"ref": "8a5b112826f7d3d5b07027f93786ae11a1c7de48" "ref": "2ae08430db28c8eb4476605894296c82a642028f"
}, },
"files": [ "files": [
"config/packages/security.yaml" "config/packages/security.yaml",
"config/routes/security.yaml"
] ]
}, },
"symfony/twig-bundle": { "symfony/twig-bundle": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.4", "version": "6.4",
"ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387" "ref": "cab5fd2a13a45c266d45a7d9337e28dee6272877"
}, },
"files": [ "files": [
"config/packages/twig.yaml", "config/packages/twig.yaml",
@ -141,36 +143,34 @@
] ]
}, },
"symfony/uid": { "symfony/uid": {
"version": "7.0", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.2", "version": "7.0",
"ref": "d294ad4add3e15d7eb1bae0221588ca89b38e558" "ref": "0df5844274d871b37fc3816c57a768ffc60a43a5"
}, },
"files": [ "files": []
"config/packages/uid.yaml"
]
}, },
"symfony/validator": { "symfony/validator": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "7.0",
"ref": "c32cfd98f714894c4f128bb99aa2530c1227603c" "ref": "8c1c4e28d26a124b0bb273f537ca8ce443472bfd"
}, },
"files": [ "files": [
"config/packages/validator.yaml" "config/packages/validator.yaml"
] ]
}, },
"symfony/web-profiler-bundle": { "symfony/web-profiler-bundle": {
"version": "6.2", "version": "7.2",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "6.1", "version": "6.1",
"ref": "e42b3f0177df239add25373083a564e5ead4e13a" "ref": "8b51135b84f4266e3b4c8a6dc23c9d1e32e543b7"
}, },
"files": [ "files": [
"config/packages/web_profiler.yaml", "config/packages/web_profiler.yaml",