Skip to content

Commit 068bbe1

Browse files
OskarStarkchr-hertel
authored andcommitted
[Demo] Upgrade to Symfony 8
1 parent cc7881c commit 068bbe1

File tree

4 files changed

+26
-67
lines changed

4 files changed

+26
-67
lines changed

demo/composer.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,32 @@
1212
"mrmysql/youtube-transcript": "^0.0.5",
1313
"nyholm/psr7": "^1.8",
1414
"php-http/discovery": "^1.20",
15-
"runtime/frankenphp-symfony": "^0.2.0",
1615
"symfony/ai-bundle": "@dev",
1716
"symfony/ai-chroma-db-store": "@dev",
1817
"symfony/ai-clock-tool": "@dev",
1918
"symfony/ai-similarity-search-tool": "@dev",
2019
"symfony/ai-wikipedia-tool": "@dev",
21-
"symfony/asset": "^7.4",
22-
"symfony/asset-mapper": "^7.4",
23-
"symfony/config": "^7.4.1",
24-
"symfony/console": "^7.4",
25-
"symfony/dotenv": "^7.4",
20+
"symfony/asset": "^8.0",
21+
"symfony/asset-mapper": "^8.0",
22+
"symfony/config": "^8.0",
23+
"symfony/console": "^8.0",
24+
"symfony/dotenv": "^8.0",
2625
"symfony/flex": "^2.10",
27-
"symfony/form": "^7.4",
28-
"symfony/framework-bundle": "^7.4",
29-
"symfony/http-client": "^7.4",
26+
"symfony/form": "^8.0",
27+
"symfony/framework-bundle": "^8.0",
28+
"symfony/http-client": "^8.0",
3029
"symfony/mcp-bundle": "@dev",
31-
"symfony/mime": "^7.4",
30+
"symfony/mime": "^8.0",
3231
"symfony/monolog-bundle": "^4.0",
33-
"symfony/runtime": "^7.4",
34-
"symfony/twig-bundle": "^7.4",
35-
"symfony/uid": "^7.4",
32+
"symfony/runtime": "^8.0",
33+
"symfony/twig-bundle": "^8.0",
34+
"symfony/uid": "^8.0",
3635
"symfony/ux-dropzone": "^2.31",
3736
"symfony/ux-icons": "^2.31",
3837
"symfony/ux-live-component": "^2.31",
3938
"symfony/ux-turbo": "^2.31",
4039
"symfony/ux-typed": "^2.31",
41-
"symfony/yaml": "^7.4",
40+
"symfony/yaml": "^8.0",
4241
"twig/extra-bundle": "^3.22.1",
4342
"twig/markdown-extra": "^3.22",
4443
"twig/twig": "^3.22"
@@ -48,11 +47,11 @@
4847
"phpstan/phpstan": "^2.1.32",
4948
"phpstan/phpstan-strict-rules": "^2.0.7",
5049
"phpunit/phpunit": "^12.1",
51-
"symfony/browser-kit": "^7.4",
52-
"symfony/css-selector": "^7.4",
53-
"symfony/debug-bundle": "^7.4",
54-
"symfony/stopwatch": "^7.4",
55-
"symfony/web-profiler-bundle": "^7.4"
50+
"symfony/browser-kit": "^8.0",
51+
"symfony/css-selector": "^8.0",
52+
"symfony/debug-bundle": "^8.0",
53+
"symfony/stopwatch": "^8.0",
54+
"symfony/web-profiler-bundle": "^8.0"
5655
},
5756
"replace": {
5857
"symfony/polyfill-ctype": "*",
@@ -93,7 +92,7 @@
9392
"extra": {
9493
"symfony": {
9594
"allow-contrib": false,
96-
"require": "7.4.*"
95+
"require": "8.0.*"
9796
}
9897
},
9998
"scripts": {

demo/config/reference.php

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<?php
22

3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <[email protected]>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
3+
// This file is auto-generated and is for apps only. Bundles SHOULD NOT rely on its content.
114

125
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
136

@@ -595,7 +588,7 @@
595588
* only_exceptions?: bool, // Default: false
596589
* only_main_requests?: bool, // Default: false
597590
* dsn?: scalar|null, // Default: "file:%kernel.cache_dir%/profiler"
598-
* collect_serializer_data?: bool, // Enables the serializer data collector and profiler panel. // Default: false
591+
* collect_serializer_data?: true, // Default: true
599592
* },
600593
* workflows?: bool|array{
601594
* enabled?: bool, // Default: false
@@ -639,7 +632,6 @@
639632
* enabled?: bool, // Default: false
640633
* resource: scalar|null,
641634
* type?: scalar|null,
642-
* cache_dir?: scalar|null, // Deprecated: Setting the "framework.router.cache_dir.cache_dir" configuration option is deprecated. It will be removed in version 8.0. // Default: "%kernel.build_dir%"
643635
* default_uri?: scalar|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null
644636
* http_port?: scalar|null, // Default: 80
645637
* https_port?: scalar|null, // Default: 443
@@ -663,8 +655,6 @@
663655
* gc_maxlifetime?: scalar|null,
664656
* save_path?: scalar|null, // Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null.
665657
* metadata_update_threshold?: int, // Seconds to wait between 2 session metadata updates. // Default: 0
666-
* sid_length?: int, // Deprecated: Setting the "framework.session.sid_length.sid_length" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
667-
* sid_bits_per_character?: int, // Deprecated: Setting the "framework.session.sid_bits_per_character.sid_bits_per_character" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
668658
* },
669659
* request?: bool|array{ // Request configuration
670660
* enabled?: bool, // Default: false
@@ -738,11 +728,10 @@
738728
* },
739729
* validation?: bool|array{ // Validation configuration
740730
* enabled?: bool, // Default: false
741-
* cache?: scalar|null, // Deprecated: Setting the "framework.validation.cache.cache" configuration option is deprecated. It will be removed in version 8.0.
742731
* enable_attributes?: bool, // Default: true
743732
* static_method?: list<scalar|null>,
744733
* translation_domain?: scalar|null, // Default: "validators"
745-
* email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict"|"loose", // Default: "html5"
734+
* email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict", // Default: "html5"
746735
* mapping?: array{
747736
* paths?: list<scalar|null>,
748737
* },
@@ -755,9 +744,6 @@
755744
* services?: list<scalar|null>,
756745
* }>,
757746
* },
758-
* annotations?: bool|array{
759-
* enabled?: bool, // Default: false
760-
* },
761747
* serializer?: bool|array{ // Serializer configuration
762748
* enabled?: bool, // Default: true
763749
* enable_attributes?: bool, // Default: true
@@ -789,7 +775,7 @@
789775
* },
790776
* property_info?: bool|array{ // Property info configuration
791777
* enabled?: bool, // Default: true
792-
* with_constructor_extractor?: bool, // Registers the constructor extractor.
778+
* with_constructor_extractor?: bool, // Registers the constructor extractor. // Default: true
793779
* },
794780
* cache?: array{ // Cache configuration
795781
* prefix_seed?: scalar|null, // Used to namespace cache keys when using several apps with the same shared backend. // Default: "_%kernel.project_dir%.%kernel.container_class%"
@@ -1109,7 +1095,6 @@
11091095
* bubble?: bool, // Default: true
11101096
* interactive_only?: bool, // Default: false
11111097
* app_name?: scalar|null, // Default: null
1112-
* fill_extra_context?: bool, // Default: false
11131098
* include_stacktraces?: bool, // Default: false
11141099
* process_psr_3_messages?: array{
11151100
* enabled?: bool|null, // Default: null
@@ -1129,7 +1114,6 @@
11291114
* activation_strategy?: scalar|null, // Default: null
11301115
* stop_buffering?: bool, // Default: true
11311116
* passthru_level?: scalar|null, // Default: null
1132-
* excluded_404s?: list<scalar|null>,
11331117
* excluded_http_codes?: list<array{ // Default: []
11341118
* code?: scalar|null,
11351119
* urls?: list<scalar|null>,
@@ -1143,9 +1127,6 @@
11431127
* url?: scalar|null,
11441128
* exchange?: scalar|null,
11451129
* exchange_name?: scalar|null, // Default: "log"
1146-
* room?: scalar|null,
1147-
* message_format?: scalar|null, // Default: "text"
1148-
* api_version?: scalar|null, // Default: null
11491130
* channel?: scalar|null, // Default: null
11501131
* bot_name?: scalar|null, // Default: "Monolog"
11511132
* use_attachment?: scalar|null, // Default: true
@@ -1154,9 +1135,6 @@
11541135
* icon_emoji?: scalar|null, // Default: null
11551136
* webhook_url?: scalar|null,
11561137
* exclude_fields?: list<scalar|null>,
1157-
* team?: scalar|null,
1158-
* notify?: scalar|null, // Default: false
1159-
* nickname?: scalar|null, // Default: "Monolog"
11601138
* token?: scalar|null,
11611139
* region?: scalar|null,
11621140
* source?: scalar|null,
@@ -1174,12 +1152,6 @@
11741152
* store?: scalar|null, // Default: null
11751153
* connection_timeout?: scalar|null,
11761154
* persistent?: bool,
1177-
* dsn?: scalar|null,
1178-
* hub_id?: scalar|null, // Default: null
1179-
* client_id?: scalar|null, // Default: null
1180-
* auto_log_stacks?: scalar|null, // Default: false
1181-
* release?: scalar|null, // Default: null
1182-
* environment?: scalar|null, // Default: null
11831155
* message_type?: scalar|null, // Default: 0
11841156
* parse_mode?: scalar|null, // Default: null
11851157
* disable_webpage_preview?: bool|null, // Default: null
@@ -1189,7 +1161,6 @@
11891161
* topic?: int, // Default: null
11901162
* factor?: int, // Default: 1
11911163
* tags?: list<scalar|null>,
1192-
* console_formater_options?: mixed, // Deprecated: "monolog.handlers..console_formater_options.console_formater_options" is deprecated, use "monolog.handlers..console_formater_options.console_formatter_options" instead.
11931164
* console_formatter_options?: mixed, // Default: []
11941165
* formatter?: scalar|null,
11951166
* nested?: bool, // Default: false
@@ -1200,15 +1171,6 @@
12001171
* chunk_size?: scalar|null, // Default: 1420
12011172
* encoder?: "json"|"compressed_json",
12021173
* },
1203-
* mongo?: string|array{
1204-
* id?: scalar|null,
1205-
* host?: scalar|null,
1206-
* port?: scalar|null, // Default: 27017
1207-
* user?: scalar|null,
1208-
* pass?: scalar|null,
1209-
* database?: scalar|null, // Default: "monolog"
1210-
* collection?: scalar|null, // Default: "logs"
1211-
* },
12121174
* mongodb?: string|array{
12131175
* id?: scalar|null, // ID of a MongoDB\Client service
12141176
* uri?: scalar|null,
@@ -1251,7 +1213,6 @@
12511213
* id: scalar|null,
12521214
* method?: scalar|null, // Default: null
12531215
* },
1254-
* lazy?: bool, // Default: true
12551216
* verbosity_levels?: array{
12561217
* VERBOSITY_QUIET?: scalar|null, // Default: "ERROR"
12571218
* VERBOSITY_NORMAL?: scalar|null, // Default: "WARNING"
@@ -1274,7 +1235,6 @@
12741235
* }>,
12751236
* autoescape_service?: scalar|null, // Default: null
12761237
* autoescape_service_method?: scalar|null, // Default: null
1277-
* base_template_class?: scalar|null, // Deprecated: The child node "base_template_class" at path "twig.base_template_class" is deprecated.
12781238
* cache?: scalar|null, // Default: true
12791239
* charset?: scalar|null, // Default: "%kernel.charset%"
12801240
* debug?: bool, // Default: "%kernel.debug%"

demo/config/routes/framework.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
when@dev:
22
_errors:
3-
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
3+
resource: '@FrameworkBundle/Resources/config/routing/errors.php'
44
prefix: /_error
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
when@dev:
22
web_profiler_wdt:
3-
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
3+
resource: '@WebProfilerBundle/Resources/config/routing/wdt.php'
44
prefix: /_wdt
55

66
web_profiler_profiler:
7-
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
7+
resource: '@WebProfilerBundle/Resources/config/routing/profiler.php'
88
prefix: /_profiler

0 commit comments

Comments
 (0)