Skip to content

Commit 441b20b

Browse files
committed
feature #1362 Update to Symfony 6.2 (javiereguiluz)
This PR was squashed before being merged into the main branch. Discussion ---------- Update to Symfony 6.2 Comments: * I've removed the SensioFrameworkExtraBundle because Symfony 6.2 now includes everything we need * The `dev` dependency of DoctrineBundle is needed because we need the unreleased `2.7.1` to have the equivalent of the old ParamConverter * The following indirect deprecations remain: ``` Remaining indirect deprecation notices (3) 1x: The "Symfony\Bridge\Doctrine\Logger\DbalLogger" class implements "Doctrine\DBAL\Logging\SQLLogger" that is deprecated Use {`@see` \Doctrine\DBAL\Logging\Middleware} or implement {`@see` \Doctrine\DBAL\Driver\Middleware} instead. 1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command 1x: The "Monolog\Logger" class is considered final. It may change without further notice as of its next major version. You should not extend it from "Symfony\Bridge\Monolog\Logger". 1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command 1x: Since symfony/translation 6.2: "Symfony\Component\Translation\Extractor\PhpExtractor" is deprecated, use "Symfony\Component\Translation\Extractor\PhpAstExtractor" instead. 1x in AddUserCommandTest::testCreateUserNonInteractive from App\Tests\Command ``` Commits ------- 1c9ca01 Update to Symfony 6.2
2 parents 28ca5c5 + 1c9ca01 commit 441b20b

29 files changed

+705
-765
lines changed

.env

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# Real environment variables win over .env files.
1010
#
1111
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
# https://symfony.com/doc/current/configuration/secrets.html
1213
#
1314
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
1415
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
@@ -30,5 +31,5 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/data/database.sqlite
3031
###< doctrine/doctrine-bundle ###
3132

3233
###> symfony/mailer ###
33-
# MAILER_DSN=smtp://localhost
34+
# MAILER_DSN=null://null
3435
###< symfony/mailer ###

.github/workflows/tests.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
fail-fast: true
1111
PHPUNIT_FLAGS: "-v"
1212
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
13-
SYMFONY_REQUIRE: ">=6.0"
1413
SYMFONY_DEPRECATIONS_HELPER: 7
1514

1615
permissions:

assets/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { startStimulusApp } from '@symfony/stimulus-bridge';
44
export const app = startStimulusApp(require.context(
55
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
66
true,
7-
/\.(j|t)sx?$/
7+
/\.[jt]sx?$/
88
));
99

1010
// register any custom, 3rd party controllers here

composer.json

+25-26
Original file line numberDiff line numberDiff line change
@@ -16,33 +16,32 @@
1616
"php": ">=8.1",
1717
"ext-pdo_sqlite": "*",
1818
"doctrine/dbal": "^3.1",
19-
"doctrine/doctrine-bundle": "^2.5",
19+
"doctrine/doctrine-bundle": "2.7.x-dev",
2020
"doctrine/doctrine-migrations-bundle": "^3.0",
2121
"doctrine/orm": "^2.10",
2222
"league/commonmark": "^2.1",
23-
"sensio/framework-extra-bundle": "^6.2",
2423
"symfony/apache-pack": "^1.0",
25-
"symfony/asset": "^6.1",
26-
"symfony/console": "^6.1",
27-
"symfony/dotenv": "^6.1",
28-
"symfony/expression-language": "^6.1",
24+
"symfony/asset": "^6.2",
25+
"symfony/console": "^6.2",
26+
"symfony/dotenv": "^6.2",
27+
"symfony/expression-language": "^6.2",
2928
"symfony/flex": "^2.0",
30-
"symfony/form": "^6.1",
31-
"symfony/framework-bundle": "^6.1",
32-
"symfony/html-sanitizer": "^6.1",
33-
"symfony/http-client": "^6.1",
34-
"symfony/intl": "^6.1",
35-
"symfony/mailer": "^6.1",
29+
"symfony/form": "^6.2",
30+
"symfony/framework-bundle": "^6.2",
31+
"symfony/html-sanitizer": "^6.2",
32+
"symfony/http-client": "^6.2",
33+
"symfony/intl": "^6.2",
34+
"symfony/mailer": "^6.2",
3635
"symfony/monolog-bundle": "^3.7",
3736
"symfony/polyfill-intl-messageformatter": "^1.12",
38-
"symfony/runtime": "^6.1",
39-
"symfony/security-bundle": "^6.1",
40-
"symfony/string": "^6.1",
41-
"symfony/translation": "^6.1",
42-
"symfony/twig-bundle": "^6.1",
43-
"symfony/validator": "^6.1",
37+
"symfony/runtime": "^6.2",
38+
"symfony/security-bundle": "^6.2",
39+
"symfony/string": "^6.2",
40+
"symfony/translation": "^6.2",
41+
"symfony/twig-bundle": "^6.2",
42+
"symfony/validator": "^6.2",
4443
"symfony/webpack-encore-bundle": "^1.13",
45-
"symfony/yaml": "^6.1",
44+
"symfony/yaml": "^6.2",
4645
"twig/extra-bundle": "^3.3",
4746
"twig/intl-extra": "^3.3",
4847
"twig/markdown-extra": "^3.3"
@@ -51,13 +50,13 @@
5150
"dama/doctrine-test-bundle": "^7.0",
5251
"doctrine/doctrine-fixtures-bundle": "^3.4",
5352
"phpstan/phpstan": "^1.2",
54-
"symfony/browser-kit": "^6.1",
55-
"symfony/css-selector": "^6.1",
56-
"symfony/debug-bundle": "^6.1",
53+
"symfony/browser-kit": "^6.2",
54+
"symfony/css-selector": "^6.2",
55+
"symfony/debug-bundle": "^6.2",
5756
"symfony/maker-bundle": "^1.36",
58-
"symfony/phpunit-bridge": "^6.1",
59-
"symfony/stopwatch": "^6.1",
60-
"symfony/web-profiler-bundle": "^6.1"
57+
"symfony/phpunit-bridge": "^6.2",
58+
"symfony/stopwatch": "^6.2",
59+
"symfony/web-profiler-bundle": "^6.2"
6160
},
6261
"config": {
6362
"platform": {
@@ -98,7 +97,7 @@
9897
"extra": {
9998
"symfony": {
10099
"allow-contrib": true,
101-
"require": "6.1.*"
100+
"require": "6.2.*"
102101
}
103102
}
104103
}

0 commit comments

Comments
 (0)