Skip to content

[Site] Fix Symfony 6.4/7.0 deprecations #1260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ux.symfony.com/assets/translator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { localeFallbacks } from '@app/translations/configuration';
import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';
/*
* This file is part of the Symfony UX Translator package.
*
Expand All @@ -7,10 +9,8 @@
* If you use TypeScript, you can rename this file to "translator.ts" to take advantage of types checking.
*/

import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';
import { localeFallbacks } from '@app/translations/configuration';

setLocaleFallbacks(localeFallbacks);

export { trans, setLocale };
export * from '@app/translations';
export { trans };

export * from '@app/translations';
2 changes: 1 addition & 1 deletion ux.symfony.com/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions ux.symfony.com/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ doctrine:
# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '14'

profiling_collect_backtrace: '%kernel.debug%'
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
mappings:
App:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
Expand All @@ -26,6 +32,7 @@ when@prod:
doctrine:
orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
Expand Down
2 changes: 2 additions & 0 deletions ux.symfony.com/config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
annotations: false
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.
Expand Down
1 change: 1 addition & 0 deletions ux.symfony.com/config/packages/notifier.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
framework:
notifier:
chatter_transports:
# mercure: '%env(MERCURE_DSN)%'
# MERCURE_DSN is defined in .env or should be set by you
custom_mercure_chatter_transport: '%env(MERCURE_DSN)%'
# slack: '%env(SLACK_DSN)%'
Expand Down
2 changes: 2 additions & 0 deletions ux.symfony.com/config/packages/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ framework:
# dsn: '%env(LOCO_DSN)%'
# lokalise:
# dsn: '%env(LOKALISE_DSN)%'
# phrase:
# dsn: '%env(PHRASE_DSN)%'
4 changes: 3 additions & 1 deletion ux.symfony.com/config/packages/web_profiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ when@dev:
intercept_redirects: false

framework:
profiler: { only_exceptions: false }
profiler:
only_exceptions: false
collect_serializer_data: true

when@test:
web_profiler:
Expand Down
8 changes: 3 additions & 5 deletions ux.symfony.com/config/routes.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
controllers:
resource: ../src/Controller/
resource:
path: ../src/Controller/
namespace: App\Controller
type: attribute

kernel:
resource: ../src/Kernel.php
type: annotation
76 changes: 39 additions & 37 deletions ux.symfony.com/symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"version": "v1.0.0"
},
"doctrine/doctrine-bundle": {
"version": "2.7",
"version": "2.10",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.4",
"ref": "d562b46dd8075ab2de3d58bf7895cf6b8365cb72"
"version": "2.10",
"ref": "0db4b12b5df45f5122213b4ecd18733ab7fa7d53"
},
"files": [
"config/packages/doctrine.yaml",
Expand Down Expand Up @@ -144,12 +144,12 @@
"version": "5.0.3"
},
"phpunit/phpunit": {
"version": "9.5",
"version": "9.6",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "9.3",
"ref": "a6249a6c4392e9169b87abf93225f7f9f59025e6"
"version": "9.6",
"ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
},
"files": [
".env.test",
Expand Down Expand Up @@ -335,12 +335,12 @@
"version": "v6.0.7"
},
"symfony/framework-bundle": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.4",
"ref": "3cd216a4d007b78d8554d44a5b1c0a446dab24fb"
"branch": "main",
"version": "6.4",
"ref": "a91c965766ad3ff2ae15981801643330eb42b6a5"
},
"files": [
"config/packages/cache.yaml",
Expand Down Expand Up @@ -383,19 +383,19 @@
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "0.3",
"ref": "7c7e63c36530052a174f28a6be4e451c4709be83"
"ref": "851667ac03fd113c5bd2215fb743974f6709bc62"
},
"files": [
"config/packages/mercure.yaml"
]
},
"symfony/mercure-notifier": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.3",
"ref": "ae4620ee823a67e41f65aabec525fa52c79a8b09"
"ref": "98a27687305d236709390ff01d7a6a9818735b97"
}
},
"symfony/monolog-bridge": {
Expand All @@ -414,12 +414,12 @@
]
},
"symfony/notifier": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.0",
"ref": "c31585e252b32fe0e1f30b1f256af553f4a06eb9"
"ref": "178877daf79d2dbd62129dd03612cb1a2cb407cc"
},
"files": [
"config/packages/notifier.yaml"
Expand All @@ -429,12 +429,12 @@
"version": "v6.0.3"
},
"symfony/phpunit-bridge": {
"version": "6.1",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.3",
"ref": "97cb3dc7b0f39c7cfc4b7553504c9d7b7795de96"
"version": "6.3",
"ref": "5e6e46e7bd453880707d920c99be0da5afaaaa22"
},
"files": [
".env.test",
Expand Down Expand Up @@ -468,12 +468,12 @@
"version": "v6.0.6"
},
"symfony/routing": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "6.0",
"ref": "eb3b377a4dc07006c4bdb2c773652cc9434f5246"
"branch": "main",
"version": "6.2",
"ref": "e0a11b4ccb8c9e70b574ff5ad3dfdcd41dec5aa6"
},
"files": [
"config/packages/routing.yaml",
Expand All @@ -495,7 +495,7 @@
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.9",
"ref": "b6d49e237d6c2c106da0fc283dae268b31534bb4"
"ref": "05c45071c7ecacc1e48f94bc43c1f8d4405fb2b2"
},
"files": [
"assets/bootstrap.js",
Expand All @@ -510,12 +510,12 @@
"version": "v6.0.3"
},
"symfony/translation": {
"version": "6.2",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.3",
"ref": "da64f5a2b6d96f5dc24914517c0350a5f91dee43"
"version": "6.3",
"ref": "64fe617084223633e1dedf9112935d8c95410d3e"
},
"files": [
"config/packages/translation.yaml",
Expand All @@ -529,12 +529,12 @@
"version": "v6.0.7"
},
"symfony/twig-bundle": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.4",
"ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387"
"branch": "main",
"version": "6.3",
"ref": "b7772eb20e92f3fb4d4fe756e7505b4ba2ca1a2c"
},
"files": [
"config/packages/twig.yaml",
Expand Down Expand Up @@ -597,12 +597,14 @@
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.7",
"ref": "368d87bd6a1888d83b6b028692cdb09c2097f004"
"version": "2.9",
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1"
},
"files": [
"assets/translator.js",
"config/packages/ux_translator.yaml"
"config/packages/ux_translator.yaml",
"var/translations/configuration.js",
"var/translations/index.js"
]
},
"symfony/ux-turbo": {
Expand Down Expand Up @@ -639,12 +641,12 @@
"version": "v6.0.3"
},
"symfony/web-profiler-bundle": {
"version": "6.0",
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.3",
"ref": "24bbc3d84ef2f427f82104f766014e799eefcc3e"
"branch": "main",
"version": "6.1",
"ref": "e42b3f0177df239add25373083a564e5ead4e13a"
},
"files": [
"config/packages/web_profiler.yaml",
Expand Down
4 changes: 4 additions & 0 deletions ux.symfony.com/tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}

if ($_SERVER['APP_DEBUG']) {
umask(0000);
}