Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d5c7829

Browse files
committedDec 8, 2024·
Update to Symfony 7.2
1 parent 4f199bf commit d5c7829

File tree

5 files changed

+482
-456
lines changed

5 files changed

+482
-456
lines changed
 

‎.github/workflows/symfony.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: CI
33
on:
44
push:
55
branches:
6-
- '7.1'
6+
- '7.2'
77
pull_request:
88
branches:
9-
- '7.1'
9+
- '7.2'
1010

1111
env:
1212
APP_ENV: test
1313

1414
jobs:
1515
symfony:
16-
name: Symfony 7.1 (PHP ${{ matrix.php-versions }})
16+
name: Symfony 7.2 (PHP ${{ matrix.php-versions }})
1717
runs-on: ubuntu-latest
1818
strategy:
1919
fail-fast: true

‎composer.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
"ext-iconv": "*",
1616
"doctrine/doctrine-bundle": "^2.11",
1717
"symfony/apache-pack": "^1.0",
18-
"symfony/console": "7.1.*",
19-
"symfony/dotenv": "7.1.*",
18+
"symfony/console": "7.2.*",
19+
"symfony/dotenv": "7.2.*",
2020
"symfony/flex": "^2.4",
21-
"symfony/form": "7.1.*",
22-
"symfony/framework-bundle": "7.1.*",
23-
"symfony/http-client": "7.1.*",
24-
"symfony/mailer": "7.1.*",
25-
"symfony/runtime": "7.1.*",
26-
"symfony/security-bundle": "7.1.*",
27-
"symfony/translation": "7.1.*",
28-
"symfony/validator": "7.1.*",
29-
"symfony/yaml": "7.1.*"
21+
"symfony/form": "7.2.*",
22+
"symfony/framework-bundle": "7.2.*",
23+
"symfony/http-client": "7.2.*",
24+
"symfony/mailer": "7.2.*",
25+
"symfony/runtime": "7.2.*",
26+
"symfony/security-bundle": "7.2.*",
27+
"symfony/translation": "7.2.*",
28+
"symfony/validator": "7.2.*",
29+
"symfony/yaml": "7.2.*"
3030
},
3131
"require-dev": {
3232
"codeception/codeception": "^5.0.8",
@@ -41,11 +41,11 @@
4141
"phpunit/phpunit": "^10.0",
4242
"rector/rector": "^0.18.13",
4343
"squizlabs/php_codesniffer": "^3.8",
44-
"symfony/debug-bundle": "7.1.*",
44+
"symfony/debug-bundle": "7.2.*",
4545
"symfony/maker-bundle": "^1.52",
46-
"symfony/twig-bundle": "7.1.*",
47-
"symfony/var-dumper": "7.1.*",
48-
"symfony/web-profiler-bundle": "7.1.*",
46+
"symfony/twig-bundle": "7.2.*",
47+
"symfony/var-dumper": "7.2.*",
48+
"symfony/web-profiler-bundle": "7.2.*",
4949
"vlucas/phpdotenv": "^5.6"
5050
},
5151
"config": {
@@ -111,7 +111,7 @@
111111
"extra": {
112112
"symfony": {
113113
"allow-contrib": false,
114-
"require": "7.1.*"
114+
"require": "7.2.*"
115115
}
116116
}
117117
}

‎composer.lock

Lines changed: 443 additions & 437 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎config/packages/framework.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
// Cache
99
$framework->cache();
1010

11+
// Csrf
12+
$framework->form()
13+
->csrfProtection()
14+
->tokenId('submit');
15+
16+
$framework->csrfProtection()
17+
->statelessTokenIds(['submit', 'authenticate', 'logout']);
18+
1119
// Framework
1220
$framework->secret('%env(APP_SECRET)%');
1321
$framework->handleAllThrowables(true);

‎symfony.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@
123123
"./.env"
124124
]
125125
},
126+
"symfony/form": {
127+
"version": "7.2",
128+
"recipe": {
129+
"repo": "github.com/symfony/recipes",
130+
"branch": "main",
131+
"version": "7.2",
132+
"ref": "7d86a6723f4a623f59e2bf966b6aad2fc461d36b"
133+
},
134+
"files": [
135+
"./config/packages/csrf.yaml"
136+
]
137+
},
126138
"symfony/framework-bundle": {
127139
"version": "7.0",
128140
"recipe": {

0 commit comments

Comments
 (0)
Please sign in to comment.